Oracle ORD_AUDIO
Version 18.3.0.1

General Information
Library Note Morgan's Library Page Header
Coming to OpenWorld 2018? Be sure to visit the TidalScale booth in Moscone South and learn how to solve performance problems and lower costs with Software Defined Servers. Before you visit the booth, or if you can't make it this year, check out TidalScale at www.tidalscale.com. Be sure to click on the Solutions link and look through the Oracle resources.
Purpose This package is the PL/SQL relational interface for ORD_AUDIO specs.
AUTHID CURRENT_USER
Dependencies
DBMS_LOB ORDAUDIO  
Documented No
First Available 12.2.0.1
Security Model Owned by ORDSYS with EXECUTE granted to PUBLIC
Source {ORACLE_HOME}/ord/im/admin/ordarpsp.sql
Subprograms
 
EXPORT
Copies multimedia data from BLOBs within the database to an external data source ord_audio.export(
src           IN BLOB,
dest_location IN VARCHAR2,
dest_name     IN VARCHAR2);
DECLARE
 vBlob BLOB;
BEGIN
  SELECT iblob
  INTO vBlob
  FROM pdm
  AND fname = 'MyBlob';

  ordsys.ord_audio.export(bBlob, 'CTEMP', 'myblob.jpg');
END blob2file;
/
 
GETPROPERTIES
Reads the audio BFILE data to get the values of the media attributes for supported formats and then stores them in the input CLOB. Populates the CLOB with a set of format and application properties as XML.

Overload 1
ord_audio.getProperties(
audioBfile IN OUT NOCOPY BFILE,
attributes IN OUT NOCOPY CLOB);
TDB
Reads the audio BFILE data to get the values of the media attributes for supported formats and then returns them as explicit parameters. Extracts the properties for these attributes of the audio data: duration, MIME types, compression type, format, encoding type, number
of channels, sampling rate, and sample size.

Overload 2
ord_audio.getProperties(
audioBfile       IN OUT NOCOPY BFILE,
mimeType            OUT        VARCHAR2,
format              OUT        VARCHAR2,
encoding            OUT        VARCHAR2,
numberOfChannels    OUT        INTEGER,
samplingRate        OUT        INTEGER,
sampleSize          OUT        INTEGER,
compressionType     OUT        VARCHAR2,
audioDuration       OUT        INTEGER);
TBD
Reads the audio BLOB data to get the values of the media attributes for supported formats and then stores them in the input CLOB. Populates the CLOB with a set of format and application properties as XML.

Overload 3
ord_audio.getProperties(
audioBlob  IN            BLOB,
attributes IN OUT NOCOPY CLOB);
TBD
Reads the audio BLOB data to get the values of the media attributes for supported formats and then returns them as explicit parameters.
Extracts the properties for these attributes of the audio data: duration, MIME types, compression type, format, encoding type, number of channels, sampling rate, and sample size.

Overload 4
ord_audio.getProperties(
audioBlob        IN  BLOB,
mimeType         OUT VARCHAR2,
format           OUT VARCHAR2,
encoding         OUT VARCHAR2,
numberOfChannels OUT INTEGER,
samplingRate     OUT INTEGER,
sampleSize       OUT INTEGER,
compressionType  OUT VARCHAR2,
audioDuration    OUT INTEGER);
TBD
 
IMPORTFROM
Import data from the specified external data source to the BLOB specified by the dest parameter.

Verified the directory and its permissions as well as the file :the source of the raised exception is not known.

Overload 1
ord_audio.importFrom(
dest            IN OUT NOCOPY BLOB,
source_type     IN            VARCHAR2, -- FILE or URL
source_location IN            VARCHAR2,
source_name     IN            VARCHAR2);
SQL> DECLARE
  2   vBlob BLOB;
  3  BEGIN
  4    ordsys.ord_audio.importFrom(vBlob, 'FILE', 'CTEMP', 'pdbtest.xml');
  5* END;
  6  /
DECLARE
*
ERROR at line 1:
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "ORDSYS.ORDSOURCE", line 319
ORA-06512: at "ORDSYS.ORDAUDIO", line 1253
ORA-06512: at "ORDSYS.ORD_AUDIO", line 23
ORA-06512: at line 4
Overload 2 ord_audio.importFrom(
dest            IN OUT NOCOPY BLOB,
source_type     IN            VARCHAR2,
source_location IN            VARCHAR2,
source_name     IN            VARCHAR2,
format          OUT           VARCHAR2,
mime_type       OUT           VARCHAR2
);
TBD

Related Topics
Built-in Functions
Built-in Packages
DBMS_LOB
ORDAUDIOEXCEPTIONS
ORDERROR
ORDERRORCODES
ORDERRORINT
ORDIMAGEEXCEPTIONS
ORDSOURCEEXCEPTIONS
ORDUTIL_PRV
ORDVIDEOEXCEPTIONS
ORD_ADMIN
What's New In 12cR1
What's New In 12cR2

Morgan's Library Page Footer
This site is maintained by Dan Morgan. Last Updated: This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2017 Daniel A. Morgan All Rights Reserved