CLOB by moving to DBMS_SCHEDULER. SET_JOB_ANYDATA_VALUE

I use OracleXE 11 g.

My question is: "is it possible to pass the CLOB value to DBMS_SCHEDULER. SET_JOB_ANYDATA_VALUE? »

Example:

Does not work:

Start
dbms_scheduler.set_job_anydata_value (job_name = > 'some_job', argument_position = > 1, argument_value = > SYS.) ANYDATA. ConvertClob ('blabla'));
end;

Error report-

ORA-22370: incorrect use of method

ORA-06512: at "SYS." DBMS_ISCHED', line 244

ORA-06512: at "SYS." DBMS_SCHEDULER', line 739

ORA-06512: at line 9 level

22370 00000 - "incorrect use of the %s method.

* Cause: This method of SYS. AnyType or SYS. AnyData or SYS. AnyDataSet is

be used inappropriately.

* Action: See documentation for correct use.

Works great:

Start
dbms_scheduler.set_job_anydata_value (job_name = > 'some_job', argument_position = > 1, argument_value = > SYS.) ANYDATA. ConvertVarchar2 ('blabla'));
end;

Thanks for any help!

Hello

It is a behavior that is expected according to the documents:

ANYDATA TYPE

Restrictions

Persistent storage of ANYDATA cases whose type contains incorporated another LOBs that BFILE s is not currently supported.

You then use VARCHAR2.

Tags: Database

Similar Questions

  • Oracle 11 g 2 dbms_scheduler.put_file does not

    Hi all

    I was not able to find a good example of using the dbsm_scheduler.put_file function.

    I tried the below and I get errors for an incorrect number of arguments of invalid type.

    The error seems to revolve around the file_contents. However, this function should be an alternative to UTL_FILE if you have no database on the remote server.

    Thanks in advance for any help.

    Jan S.

    SET SERVEROUTPUT
    vClob clob;
    BEGIN
       
      --Put the files on the remote server
      
      DBMS_SCHEDULER.PUT_FILE (
          destination_file => '/home/oracle/scripts/execute_sql.sh',
          destination_host => '10.0.30.174:1500',
          credential_name =>  'ORACLECREDENTIALS',
          file_contents => vClob,
          source_file_name => '/home/oracle/scripts/execute_sql.sh',
          source_directory_object => 'SCRIPT_REPO');
      
    END;
    
    

    Please try using this format:

    DBMS_SCHEDULER.PUT_FILE (   destination_file         IN VARCHAR2,   destination_host         IN VARCHAR2,   credential_name          IN VARCHAR2,   source_file_name         IN VARCHAR2,   source_directory_object  IN VARCHAR2,   destination_permissions  IN VARCHAR2 DEFAULT NULL);
    
  • SQL Loader, CLOB, delimited fields

    Hello.

    I have to load using SQL Loader of csv file data into a table, a field is of type CLOB.

    Here's how ctl file looked like at the beginning:

    UNRECOVERABLE
    DOWNLOAD THE DATA
    INFILE «.\csv_files\TSH_DGRA.csv '.
    BADFILE «.\bad_files\TSH_DGRA.bad '.
    DISCARDFILE «.\dsc_files\TSH_DGRA.dsc '.
    ADD
    IN THE TSH_DGRA TABLE
    FIELDS ENDED BY ',' POSSIBLY FRAMED BY "" "
    TRAILING NULLCOLS
    (
    ID_OBJ_TSHD,
    PR_ZOOM_TSHD,
    PR_GRID_TSHD,
    PR_ELMGR_TSHD TANK (4000) OPTIONALLY ENCLOSED BY '< clob >' AND ' < / clob > ',
    PR_ALRMGR_TSHD TANK (4000) OPTIONALLY ENCLOSED BY '< clob >' AND ' < / clob > '
    )


    The problems are the fields PR_ELMGR_TSHD and PR_ALRMGR_TSHD (CLOB in the table TSH_DGRA). Until which data should be loaded into CLOB fields are at least 4000 characters, it works very well, but what do I do if I want to load data that is older of 4000 characters?

    If found on the link: [http://download.oracle.com/docs/cd/B14117_01/server.101/b10825/ldr_loading.htm#i1006803] which a sentence says:

    "SQL * Loader by default 255 bytes when moving CLOB data, but you can specify a value of up to 2 gigabytes." For a field bounded, if a length is specified, this length is used as a maximum. If no maximum is specified, it uses default 255 bytes. For a CHAR field that is bounded and is also greater than 255 bytes, you must specify a maximum length. (See TANK for more information on the CHAR data type".

    So, my question is, how specify "up to 2 GB" so that text says? I can't use the CHAR data type because it is limited to 4,000 characters. And I have to load about 60000 characters. I also can't use technique where all each CLOB field data in separate files.

    Simply specify the expected maximum size:

    ....
    PR_ELMGR_TSHD TANK (100000), POSSIBLY ENCLOSED BY ""AND"."
    PR_ALRMGR_TSHD TANK (1000000), OPTIONALLY ENCLOSED BY '... « ET ». »
    )

    The CHARIOT (1000000) will allow SQLLDR to manage up to 1000000 bytes of input text.

  • How Index on a CLOB column?

    I have a need index on a CLOB column. The first attempts to index will result in ORA-02373.
    In research, I was able to find one that a LOB column could be moved to a different tablespace then indexed.

    So I intend to use these statements (see below), to create a text index on column CLOB STATEMENT_TEXT.
    Questions: What storage should be used for the CLOB column?
    What type of index is required to create a text index on the CLOB column?

    ALTER TABLE ANY_STATEMENT MOVE
    TABLESPACE INFOWH2 STORAGE (INITIAL 4096K)
    LOB (STATEMENT_TEXT) STORE lobsegment
    (TABLESPACE INFOWH2 STORAGE (INITIAL 4096K));

    Then:
    CREATE INDEXES IDXANYSTMTTEXTBINARY
    ON LOB (STATEMENT_TEXT)
    INDEXTYPE IS CTXSYS. CONTEXT;


    Here is the table in part:
    CREATE TABLE ANY_STATEMENT
    (
    ANY_STATEMENT_ID TANK (18 BYTES) NOT NULL,
    CODE VARCHAR2 (4 BYTE),
    STATEMENT_TYPE_ID_FK TANK (18 BYTES) NOT NULL,
    USER DEFAULT UPDATED_BY VARCHAR2 (50 BYTES)
    LAST_DATE_UPDATED DATE DEFAULT SYSDATE,
    DESTINATION_ID_FK TANK (18 BYTES),
    LANGUAGE_ID_FK TANK (18 BYTES) NOT NULL,
    DATE OF SUPERCEDED_DATE,
    NUMBER OF FORMULA_REFERENCE
    FORMULA_SERIAL VARCHAR2 (15 BYTE),
    TANK (18 BYTES) BY DEFAULT USER CREATED_BY_ID_FK NOT NULL,
    DATE_CREATED DATE DEFAULT SYSDATE NOT NULL,.
    ON_HOLD CHAR (1 BYTE),
    NUMBER OF TEMP_REFERENCE_NUMBER
    APPLICATION_NOTES VARCHAR2 (2048 BYTE),
    HOLD_REASON VARCHAR2 (1024 BYTE),
    STATEMENT_TEXT CLOB,
    REASON CLOB
    )
    TABLESPACE INFOWH
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE)
    ORIGINAL 112K
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    NOCOMPRESS
    LOB (STATEMENT_TEXT) STORE AS
    (TABLESPACE INFOWH
    ALLOW ONLINE STORAGE
    8192 CHUNK
    PCTVERSION 0
    NOCACHE
    STORAGE)
    64K INITIALS
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    )
    LOB (REASON) STORE AS
    (TABLESPACE INFOWH
    ALLOW ONLINE STORAGE
    8192 CHUNK
    PCTVERSION 0
    NOCACHE
    STORAGE)
    64K INITIALS
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0
    DEFAULT USER_TABLES
    )
    )
    NOCACHE
    NOPARALLEL
    MONITORING;

    See if this thread is useful.

    http://www.orafaq.com/Forum/t/8494/0/

  • Attached to an e-mail being damaged when moved.

    I a spent a strange in Mail. I think it started when I updated to Sierra late last week, but while that reasonably sure it's that I can't be 100% sure.

    My main mail account (IMAP) is a third-party provider (but this seems to be repeated with other accounts including my iCloud accounts).

    When I send an email with an attachment pdf, the recipient receives it very well, the mail is placed in my inbox sent very well and it displays fine. However when I move it to another folder for the PDF archiving seems to disappear.

    This happens when I move it to a folder of archive "on my Mac" and also to a folder in my email to iCloud account. Not every email with an attachment pdf for this although cases where they are rare, and I can't find even a boss who to and who are not. Sometimes, instead of disappearing, they will turn into an appearance of type long machine code.

    If I chose to copy the message to a folder instead of moving it, both the original in the sent folder and copy to the folder of archive are concerned.

    I think that the pdf is damaged rather than deleted because...

    • E-mails always show icon of attachment (paperclip) next to the recipient in the message list in the column to the center of the messaging application.
    • In some cases if I select several e-mail I enter to see the attachment in the graphic "multi-Courriel stack" displayed in column 3 of the messaging application.
    • If I move or copy the mail on my iCloud account, I see both a pdf on my iCloud.com phone but my phone it opens a blank document gray and iCloud.com reported as corrupt.

    If I drag mail with an attachment pdf on my desktop the same thing happens.

    This doesn't happen with the mail that I get with a pdf file, even if this mail was sent from myself as a test.

    Have you ried, in this case also, if you set "Mail > Preferences > General > remove the download" to "never" instead of one of the automatic options?

    I seem to have lost the man so attached after the upgrade of the Sierra, but did not find a model that I have disabled all the messages of all the rules that allow mail delete attachments.

    In my view, this problem is related to the automatic "Optimize Storage" and "Reduce the clutter" in Sierra.  From  > about this Mac > storage: one of the options is to keep only the latest accessories.  I never activated, but but most of my older attachments have been deleted.

  • Notes - moving notes version 3.3 to 4.2 or the cloud

    Hey all,.

    I am currently moving all my data from my old MacBook Air to my new year Pro, and it's all gone very smooth and has been a success. With one exception, my notes.

    I have hundreds of notes in the application notes on my MacBook Air. The notes are all "on my Mac", not in the cloud, so I thought I just move to the cloud and get like that on my new MacBook.

    My new MacBook is connected to the cloud and happily sharing notes with my iPhone and the iPad, everything works perfectly.

    But when I tried now activate the notes in iCloud on my old MacBook Air, the problem starts. It does not show the structure for the notes to iCloud and on my Mac, but it's not download/synchronize notes with the cloud. When I add a note to the iCloud on the MacBook Air, it does not appear on another device. When I add a note on my new MacBook, iPhone, or iPad appears on two other devices. Looks like there are has two parallel clouds, which uses the old MacBook Air and the other utilizing the new MacBook and my mobile devices, even if they are all connected to the same account.

    I guess this might have something to do with the different versions, as the old MacBook uses notes 3.3, while the other uses 4.2. Is 3.3 may not work with the cloud? I have not found a way both to update the application notes to a later version.

    With the help of Yosemite 10.10.5

    Any ideas / suggestions?

    Is it maybe possible to copy the notes manually on the new mac? Not by copy / paste it in the application notes, but using real files >

    Thank you!

    CuriousTim

    Is the old MacBook Pro connected to iCloud under settings?

  • After moving, I, installation, my, mac mini, and added, 3, external, readers, but, no, not see them listed, anywhere, what happened, t o, them?, how, would be, in my view, the?, contain, most, my, photos.

    I recently moved and you need to configure my Mac mini once again, I added 3 external hadrdrives. Previously, they have been listed under devices now that they do not appear anywhere. They contain all my pictures form opening and ambient light. Where required external drives? How can I find them?

    Open Finder preferences and make sure the boxes for external drives are checked in the general tabs and sidebar.

    If it does not help?

    Try resetting the SMC, according to > reset the management system (SCM) controller on your Mac - Apple Support

  • I am running Yosemite. Should I upgrade to El Capitan before moving on to the Sierra?

    I am running Yosemite. Should I upgrade to El Capitan before moving on to the Sierra?

    No you do not.  Lion 10.7.5 or higher, you're in the clear.

    MacOS Sierra - technical specifications

  • Backup (moving) pictures from iPhone to iCloud, stuck!

    Hi all

    I let go a long day holiday tomorrow and I have a lot of pictures on my iPhone taking over of valuable storage that I know I'll need inevitable for the pictures and videos on vacation. I went into my iCloud > Photos settings and position "Optimize iPhone storage" and it is just stuck on "download of 1 063 items. The number has moved, but since I started this about four hours ago he did only ~ 200 at most.

    I'm doing something wrong? I desperately need to move my 19 GB of Photos from my phone to my iCloud (I have 50 GB of space, 41GB that is available).

    If it is downloading, you do not have something wrong. It is an extremely slow process.

  • Cannot change the number of laptop Apple ID because I moved from the India

    I can't change the number of mobile for notifications in my Apple/iCloud account, it shows my old Indian number but I moved from the India and now Iam in Tanzania. He asked security questions that I don't even remember...

    I can not yet implemented iCloud keychain...

    Need help, he cannot set up on my Mac, the iPhone or iPad

    You can change preferences/iCloud/Keychain/options of the system?

  • iOS 10 Mail: moving Messages, inconsistent behavior when you tapoterez folder icon

    iPhone 6, iOS 10

    I see inconsistent behavior when I try to move a message in Mail from in the message.

    In previous versions of iOS, during playback of an e-mail message, I could tap the icon of the folder at the bottom of the messages, and which would lead to the top of the hierarchy of the folders for the email of the message account. From there on, it was just a matter of tapping on the file I want to move the message to, and he settled there the message and look back to the Inbox display (or the folder view I moved this message of).

    In iOS 10, when I hit this folder icon, two things happen: it happens the same thing I described above, or sometimes, rather than see the hierarchy of folders, I see three buttons slide up from the bottom of the screen. The top button allows me to move the message directly to a folder in my account called 'Action' I created (I don't know why he chose this particular file to the default value for this button - maybe because it is first in alphabetical order of all my folders created by the user), the second button says "Another mailbox" and when it takes me to the hierarchy of the mailbox as described above, and the third button is a Cancel button.

    I can't understand what dictates which of those two things happening. I tried again and again on a bunch of different messages. Some do happen, some do the other thing happens, and sometimes I'll have a different behavior in the message even if I try again later.

    I prefer the old way. But I could get used to the new way, if I could at least choose what default folder appears in the first box.

    Anyone else seeing this?

    Someone knows how to change the default folder in the first box of this new process?

    Thank you!

    I seem to have solved the problem on my own. I went to settings > Mail, and in the "Threading" section, I have disabled "Complete Threads."

  • My imac (El Capitan 10.11.6 - 2 Terabyts) complete and FCPX disk will not work. I moved a few fcpxbundles library to an external hard drive (seagate 2 trabyte) and erased from the iMac. NowFCPX said that missing data as effects therefore can not shar

    Help!  My FCPX (v - 10.2.3) does not work because my iMac drive is full (iMac 21.5 inch has 2 terabyte w / v OS El Capitan 10.11.6) I had tried to free up space by moving tons of files on a usb disk Seagate (2 terabyte) speedboat that barely made a dent. then on the advice of a friend I found (in movies) a file called Final Cut backups. There were 4 files with extension, ".fcpbundle" I have three of them moved to another drive to Seagate usb - they had 2.82 GB, 21.6 GB and GB 68,21 that I thought should be enough and them removed from my iMac drive - bad! It says I have only 13.46 GB free on my 2 terabyte iMac total!

    The fourth fcpbundle it's TB 1.72! But before leaving that I returned and opened FCPX and found the warning triangle around my library... While my last project looked OK I couldn't / the share of exports because the pop-up says FCPX has no data for efx etc (the media looked at and display fine) and cannot be taken out.

    FCPX can work with the "beams" moved to another drive? How the detectable in a new place? Or how to put them back?
    How can I make sure that future packages clutter my iMac again?

    Do I need a RAID disks? If yes which?

    I found other folders in folders 'Make files' and records backup for projects with the .fcpbundle inside files

    How can I get this sucker working again?... and what should I do to keep him from doing the same thing in the future?

    Thank you

    John

    :.. then on the advice of a friend I found a file called Final Cut backups (in movies). There were 4 files with extension, ".fcpbundle" I have three of them moved to another drive to Seagate usb - they had 2.82 GB, 21.6 GB and GB 68,21:

    The backup files are only the database files (no media) and must be low, not gigabytes, do not know what is happening there.

    Media libraries stored in the bundle of FCP X library or stored outside?

    If stored at the breast, called managed media, simply copy and paste the library to a different location.

    Make sure that library books newly located correctly before you remove what either.

    Perhaps check your settings of the library.

    Click the library icon in the browser and it appears in the Inspector:

    By clicking on change settings shows this:

    Move the mouse over the media and it will reveal the path where things are sent.

    Then you might be able to track down what goes where.

    From you description, it seems that most of the media files and rendered is not be moved successfully.

    Some screenshots would be useful if you can't find where stuff is.

    Al

  • lost moving photo of iphoto photos.

    I've lost thousands of photos since his arrival in Photo in iphoto. Help! any suggestions?

    Hello tomdigiulio,

    Thanks for this info and choosing the communities Support from Apple. I know how important to get all your photos back is for you! From what you said, it seems you may be experiencing / having problems with moving from iPhoto to Photos for OS X as this article describes:

    Update to iPhoto to Photos for OS X

    Depending on your version of iPhoto, you may need to use the original tool of valorisation of the iPhoto on your iPhoto library library and then try to open this library in pictures for OS x:

    iPhoto Library upgrade 1.1

    In addition, if you have a backup of your personal data on your Mac, you could restore that data to recover your missing photos:

    Use Time Machine to back up or restore your Mac

    See you soon!

  • Disorganized iTunes Media after moving to NAS

    Hello

    I have moved my iTunes for Synology NAS library and am maintaining the logical structure of the different media files.

    On the NAS, I created volume 'Media' where I moved to the iTunes library and where I want all kinds of media to reside and to share with others (Synology, Plex) apps. This volume is now the default iTunes media folder.

    I have relinked the library in ITunes without problem and can see everything as before, but when for example I am adding new content to music to iTunes (with 'Keep media' and 'Copy media in the iTunes folder') organized checked it lands directly in the 'media' instead of ' Media /Music"." Why and how can I solve this problem?

    I want to keep the structure of file like this:

    Media (volume)

    -Music

    -Artist name

    -Album name

    -Movies

    -Name of film

    TV - series

    -Show Name

    -Books

    -Etc.

    Is this possible? Is to select a volume than the main iTunes folder of media app messes things why?

    It seems OK, I had to «Organize library...» "after moving and all the orphaned files have been moved to /Music they belong.

    I think I like iTunes a little more now

  • Moving files from pro final cuts on another hard drive

    I have a mess.  I installed a new external hard drive more and all my files pro FCP move toward her.  I also want to delete unnecessary files to free up space.  I bought a cool program Final Cut Library Manager and was able to easily move all my libraries to the new drive.  I organized my new drive in folders, IE. Cup 2014 final, Final Cut 2015, Final Cut 2106 I my libraries in the years I've done them.  I libraries moved but I still all those other files on the old hard drive and I don't know what to do.   I have a folder named "Final Cut Library" and it is 500 GB in size.  Within the limits it are named Final Cut optimized Media, original Final Cut and Final heart Proxy Media media.  Can I just delete all of them in the finder?

    I also have a bunch of other files that seem to be names of library with the names of EDT.fcpbundle.  I need these files?  Can I just delete or move in finder?

    Thanks for any help.

    "There are the folders named Final Cut optimized Media, original Final Cut and Final heart Proxy Media media.  Can I just delete all of them in the finder? »

    These files are in the bundle of FCP X., you open the contents of the package?

    At any rate yo can remove from the Finder, please make sure that everything works well on the new external until you to empty.

    "with the names of EDT.fcpbundle"

    They will be back up files that are very small, probably in your home > movies folder.

    You can their trash if you wish.

    Al

Maybe you are looking for

  • Why Satellite Pro A60 beep sometimes while working normally?

    Hello Every now and then I hear a beep loud echo while using my A60, what does this indicate? I'm afraid that I had to have my laptop repaired twice under warranty and now the warranty is out, I don't want to end up with costly repairs. First time ou

  • Acer Live Updater can not install the VGA Driver.

    I have an Aspire V5-571, Live Updater indicates a new update for Driver VGA Intel is ready to be installed. However, after you click install, and then 'Finish' button, there is a red icon saying that a system restart is necessary. I tried to restart

  • Viewing photos from a CD - R

    I transferred allocate photos on a CD - R and now when I put the CD in the drive, I get a 'file type not supported"and cannot view photos

  • save paper photos

    I have hundreds of pictures of the hard copy.  Need to make room for storage and want a copy, scanning of discs.  Which is the easiest and fastest way to do it.  I have a HP Photosmart all-in-One e-printer.

  • Apply a background to the foreground.

    Hello I want to make my application in the background, and if the user tries again to open the app, it should come to the foreground. I used ' UiApplication.getUiApplication () .requestBackground (); "to send my application in the background. If I se