Specifying Access Parameters while using oracle_datapump

Hi All,
I am trying to create an external table using type " Oracle Datapump" (10g R2 database version). I am trying to specify certain access parameters so that the exported data file has specific delimiters in it. But it is giving me errors. Can someone help me please??
The code is:
DROP TABLE xx_write CASCADE CONSTRAINTS;
CREATE TABLE xx_WRITE
ORGANIZATION EXTERNAL
( TYPE oracle_datapump
DEFAULT DIRECTORY TMPDIR
ACCESS PARAMETERS
(RECORDS DELIMITED BY NEWLINE
BADFILE TMPDIR:'xx.bad'
     LOGFILE TMPDIR:'xx.log'
FIELDS TERMINATED BY '~'
OPTIONALLY ENCLOSED BY "'"
MISSING FIELD VALUES ARE NULL
LOCATION (TMPDIR:'xx.txt')
AS
SELECT ATTRIBUTE1 ,
ATTRIBUTE2 ,
ATTRIBUTE3 ,
ATTRIBUTE4 ,
ATTRIBUTE5 ,
ATTRIBUTE6
FROM xx_insert;
The errors I get are as below:
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found "identifier": expecting one of: "logfile,
nologfile, version" etc..
KUP-01008: the bad identifier was: RECORDS
KUP-01007: at line 1 column 1
ORA-06512: at "SYS.ORACLE_DATAPUMP", line 19
Thanks

Hi,
I really appreciate your response. I am completely new to this feature in 10g, and am trying to see, if I can use this to suit what I have as a requirement.
I have reviewed the links provided, and I see only examples of "oracle loader" and details of the same.
My intent was to try to write the data from a table into a flat file using an external table approach, with specific delimiters.
I tried to do it, and see that the resulting data file is "xml" formatted. My question, is "Is it possible to export the same data into a data file (say tabb limited) with specific delimiters as we would do in the Oracle loader.
Hence I was trying to specify the "access parameters" in the same script. But I am getting the errors I mentioned.
I tried the below:
SQL> ed
Wrote file afiedt.buf
CREATE TABLE xx_WRITE
ATTRIBUTE1 VARCHAR2(250 BYTE),
ATTRIBUTE2 VARCHAR2(250 BYTE),
ATTRIBUTE3 VARCHAR2(250 BYTE),
ATTRIBUTE4 VARCHAR2(250 BYTE),
ATTRIBUTE5 VARCHAR2(250 BYTE),
ATTRIBUTE6 VARCHAR2(250 BYTE)
ORGANIZATION EXTERNAL
( TYPE oracle_datapump
DEFAULT DIRECTORY TMPDIR
ACCESS PARAMETERS
(RECORDS DELIMITED BY NEWLINE
FIELDS TERMINATED BY '~'
OPTIONALLY ENCLOSED BY "'"
MISSING FIELD VALUES ARE NULL
LOCATION (TMPDIR:'xx.txt')
Table created.
But when I try to select from the table, it gives me error...
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found "identifier": expecting one of: "logfile,
nologfile, version" etc..
KUP-01008: the bad identifier was: RECORDS
KUP-01007: at line 1 column 1
ORA-06512: at "SYS.ORACLE_DATAPUMP", line 19
So, it is my understanding that we can't export the data into a flat file of our requirement using "datapump", Is that correct? Can someone please confirm... ?
I know, I could use UTL_FILE.. But I would like to confirm "oracle datapump" limitations before I decided,
Thank You.

Similar Messages

  • Security Access Violation while using AudioClip

    'Sounds[6]= Applet.newAudioClip(new URL("file:audio/itemsprout.wav"));'
    When I try and run the applet on a browser, I get a access violation error. I'm pretty sure it's the URL part, but how do I bypass it? Or go around it?
    Thanks in advance,
    Adrian Kwok

    Argh.. But it doesn't convert mid files.. >_<its not supprted with Applet.AudioClip either so don't worry 'bout d'at -
    though if you wish to venture into the javax.sound.sampled API (never used it - but I do know its there) midi is supported

  • Gertting error msg 'no access authorization'  while using FM FTP_CONNECT

    HI All,
    I'm using FTP_CONNECT FM to connect to FTP server and i'm getting the message User has no access authorization for computer. When i try to connect from command prompt using the same ip address, user name and password ..i can connect successfully. From SAP i getting the no authorization message.
    Please let me know do we need to maintain the IP address of the FTP server in sap ?

    Hello,
    Check this programs how they are using the FM
    RSFTP002                               Execute FTP Command
    RSFTP003                               FTP put / get Test
    RSFTP004                               FTP Copy
    RSFTP006                               FTP command list
    RSFTP007                               Test FB:FTP_SERVER_TO_R3 / FTP_R3_TO_SERVER
    RSFTP009                               Test FTP put with Verify
    RSIRCCON                               KPro: Test of data connections to memory repositories

  • Access Denied while using mozzilla firefox

    When I try to access a web application through portal using mozilla fire fox, then an error appears
    Uncaught Exception: [Exception... "Access to XPConnect service denied" code:"1011" nsresult:"0x805303f3 (N5_ERROR_DOM_XPCONNECT_ACCESS_DENIED" location:"...some url..."]
    Does any one has any idea?
    Is it because of portal permisssion? or network security? or an application bug?

    Hi,
    Is this a standard portal application?
    Not all of the Portal features work so good in firefox.

  • File access problem while using BULK INSERT

    I'm creating a script to automatically convert a large mess of data.  Here's a test query I was using to bring a file into the database:
    INSERT [ImportTestTable]
    SELECT a.*
    FROM
    OPENROWSET(
    BULK 'D:\TestFile.csv',
    FORMATFILE = 'D:\TestStyle.fmt',
    FIRSTROW = 2
    ) AS a;
    SELECT * FROM ImportTestTable
    I've used queries like this on other networks and machines before, but when I run that query on the particular machine I'm working with now, I get the following error:
    Msg 4861, Level 16, State 1, Line 13
    Cannot bulk load because the file "D:\TestFile.csv" could not be opened. Operating system error code 21
    (The device is not ready.).
    Here's some relevant facts I can think of that might help:
    I am running the query from SQL Server Management Studio on a remote machine running Windows 7 Ultimate.  I am connected to this server using SQL authentication.  I believe we are on the same domain / network.  I am not the DBA.  I do
    have the permission "Administer Bulk Operations" explicitly granted to me by the DBA.  The user I am currently logged in as in windows is capable of opening, editing, and saving the file in windows explorer.  The format file is a NON-XML
    format file.
    Any pointers as to where to look for more detailed information would be greatly appreciated!

    I know this is a little old by now, but this is what I used just this week:
    bulk insert [dbo].[Test_Table]
    from 'C:\Documents and Settings\rshuell\Desktop\Test_File.txt'
    WITH (
    FIELDTERMINATOR=',',
    ROWTERMINATOR = '\n',
    KEEPNULLS,
    FIRSTROW=2
    That worked fine for me.
    Of course, we Naomi stated, the file has to be ON THE SERVER.  Or, if you're using an FTP site, for instance, the path would have to point to the FTP site.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Error while accessing excel file using ODBC

    Hi
    I am getting the below error message while accessing excel sheet using ODBC from Oracle:
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from EXCL
    Can anyone help me on this...
    Cheers
    Pradeep
    Message was edited by:
    user634393

              Hi
              Thank you.Is there a way to read a file which is existing in the war file.
              Regards
              Anand Mohan
              "Wenjin Zhang" <[email protected]> wrote:
              >
              >In Weblogic, if your files are archived in a WAR, you cannot get an entry
              >as individual
              >file since it is only bytes in a large archive file. So getRealPath will
              >give
              >you null result. If you only want the path, try to use other getXXXPath,
              >getURL,
              >or getURI method. If you want to read the content, use getResource.
              >
              >
              >"Anand" <[email protected]> wrote:
              >>
              >>Hi
              >>I am having problem while accessing the file located in the server from
              >>a JSP
              >>page. I am not getting the RealPath from a JSP page using getRealPath(request.getServletpath()).
              >>
              >>The same code is working if the jsp placd under defaultwebApp directory
              >>and not
              >>working if i create a war and deploy the same.
              >>
              >>I am using weblogic server 7.0 trail version.I am setting the context
              >>path also.
              >>
              >>Can any help me in this regard.
              >>
              >>Thank And Regards
              >>
              >>Anand Mohan
              >
              

  • Getting Error while accessing the data using odata service

    Hi All,
    Iam new to SAP FIORI. 
    Iam getting the below error while accessing the data using odata service.
    "Failed to load resource: the server responded with a status of 404 (Not found)"
    "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin "
    i have tried all the solutions like changing the url pattern "proxy/htttp".
    and disabled - security in chrome (Chrome is Updated version).
    i tried with IE still got the same problem.
    And installed all the required software in eclipse
    While installing GWPA plugin i got the following error.
    let me know if any one have idea.
    Thanks in advance.

    > Do you want to add and/or update the data in the already existing tables or do you want to replace the content completely?
    >
    > so in that way :
    > bot the options are fine what ever take less time.
    Sorry mate, but YOU have to know what you want here.
    I gave you an easy to follow set of steps.
    As you don't seam to mind the outcome, just might just use them...
    > I wanted to know weathe i can use the  loadercli for thie export import or not? if yes then is there any new steps to do before i do the export import?
    We had this discussion before...
    >
    > For that the easiest option would be just to drop the tables of SAPR3 and run the import again.
    >
    > For ease of use you could also just do:
    > - logon as superdba
    > - drop user SAPR3
    > - create user SAPR3 password SOMEPW not exclusive dba
    >
    > After these steps you can easily pump the data into the database again.
    >
    > So here in th above given steps , i am creating a new SAPR3 user and why it is not exclusive dba ?
    >  i already have that user SAPR3 can i use the same.
    Yes, you do have the SAPR3 user.
    But you don't seem to like to read documentation or learn about how the tools work or anything like that.
    Therefore I gave you s simple way to reach your goal.
    Of course it's possible to reuse the user.
    But then you would have to deal with already existing tables, already existing data etc.
    You don't seem to be able to do that. So, the easy steps might be better suited for your needs.
    regards,
    Lars

  • Can I access a user guide for 5.1.1 while using my iPad?? I will not have the internet for 10 days so would like to download something.

    Can I access a user guide for 5.1.1 while using my iPad?? I will not have the internet for 10 days so would like to download something before I leave!

    Download the fee iBooks app from the app store if you don't already have it.  Then download the .pdf here: iPad User Guide (For iOS 5.1 Software).  Next, import it to your iTunes library (iTunes>File>Add to Library).  Then sync it to your iPad by selecting it on the Books tab of your iTunes sync settings and syncing your iPad.  It will availble in iBooks in the PDFs section (tap Collections on the top left, then tap PDF's).

  • The parameters to tune os while using Orcale 9i 9.2.0.7.0

    Hi,
    Can you please tell me the parameters to tune the operating system while using the oracle 9i 9.2.0.7.0 and 10g.
    Thnaks
    Mohit Jain,

    Please re-read the title of this forum and explain how your question is relevant to this forum.
    You might find this is best discussed over in the Database forum. Or you could read the documentation that is relevant - at http://tahiti.oracle.com you will find manuals such as 'Database Reference Manual' which lists the parameters, and the 'Performance Tuning manual' which discusses the various aspects of tuning.
    But ... realize the question you ask is the same we spend years and years studying. If it was 'that simple', it would already have been automated.

  • Accessing PC6 and PC7 while using the handshaking-mode

    How can I access the lines PC6 and PC7 on my PCI-6503 / DIO24 Board while
    using the handshaking-mode?
    If I'm trying to access these lines by "dig_out_line" after using the "dig_scan_setup"
    function I receive the error-code -10007 (bad channel error).
    best regards
    Marc

    One feature I found - although it requires you to change album names - but if you on the settings part of iPod set the shuffle to songs, when you pick an album to play it will shuffle those songs. Now how do you apply this to what you want to do? Make your playlist and highlight all the songs and right click the mouse and choose "Get Info" and give them all the same album name. The only draw back is that this will cause the songs to loose their original album information. But when you play that album that you just "created" the iPod will shuffle the songs for you.

  • What is the default group id/ home /shell while adding new account with useradd without specifying these parameters?

    What is the default group id/ home /shell while adding new account with useradd without specifying these parameters?
    reagrds

    Hi,
    You can check the default values from the below file
    /usr/sadm/defadduser
    and from this command
    #useradd -D

  • While using my iPhone the system behavior changed where I now have to click on the app to select it, then double click to launch it. Same goes for entering in my password to access the phone and entering digits to make a phone. I am also having trouble

    While using my iPhone the system behavior changed where I now have to click on the app to select it, then double click to launch it. Same goes for entering in my password to access the phone and entering digits to make a phone. I am also having trouble swiping the screen to move to the next page. This is no longer working. I did not change any settings, the phone just started behaving this way. Any ideas on how to revert back to the single click selection/launch? Any assistant is greatly appreciated. Thank you!

    Edge has very clear restrictions, one being that you must have 6 months of clean payment history which you don't. Either wait until April 14, or good luck at Sprint.
    I am unsure how it can be determined the payment mix up was the fault of CS, but regardless, the mix up was done. There can be any number of reasons why a payment could be missed without any fault on your part, however you are still the responsible party for the account and must live with the repercussions.

  • Accessing external speakers while using airplay

    While using airplay I am unable to use my external speakers through the audio system that I use.  When I go to preferences and sound I do not see external speakers listed.
    I have used this same system for over a year now, but now external speakers are not listed, only the internal speakers are listed.
    When using my iPad I have no problem using the external speakers.  The problem is only when using my MacBook Pro.
    Does anybody have any suggestions?
    Thanks,
    Ron

    Thank you for the response. I was afraid that might be the case. I've been trying to think through a way to connect the ipad so that I can use the connected speakers inside while using airplay to connect to the ihome speaker outside. It looks like it is one or the other. I didn't think about that when purchasing the speaker for outside.

  • Getting Error while using  LKM File to Oracle(SQLLDR) KM in ODI

    Hi All ,
    Could anyone please help me out on this error which i am getting while using LKM File to Oracle(SQLLDR)
    My Scenario :
    1. I have my CSV file created in one location with some records .
    2. Created a new interface having this CSV file as source(File Technology) and Table as target (Oracle technology)
    3. Here i want to get the contents from csv and store into the target table by using SQLLDR .For that i am using this KM- LKM File to Oracle(SQLLDR)
    4. By Executing the Interface i am getting following error at step 6 -call sqlldr
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (most recent call last):
      File "<string>", line 22, in <module>
    Load Error: See E:\demo1\file/SALES.log for details
      at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
      at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:322)
      at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)
      at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2472)
      at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:47)
      at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)
      at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
      at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
      at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
      at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:577)
      at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)
      at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)
      at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
      at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
      at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
      at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
      at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
      at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
      at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
      at java.lang.Thread.run(Thread.java:662)
    Caused by: Traceback (most recent call last):
      File "<string>", line 22, in <module>
    Load Error: See E:\demo1\file/SALES.log for details
      at org.python.core.PyException.fillInStackTrace(PyException.java:70)
      at java.lang.Throwable.<init>(Throwable.java:181)
      at java.lang.Exception.<init>(Exception.java:29)
      at java.lang.RuntimeException.<init>(RuntimeException.java:32)
      at org.python.core.PyException.<init>(PyException.java:46)
      at org.python.core.PyException.doRaise(PyException.java:219)
      at org.python.core.Py.makeException(Py.java:1166)
      at org.python.core.Py.makeException(Py.java:1170)
      at org.python.pycode._pyx2.f$0(<string>:59)
      at org.python.pycode._pyx2.call_function(<string>)
      at org.python.core.PyTableCode.call(PyTableCode.java:165)
      at org.python.core.PyCode.call(PyCode.java:18)
      at org.python.core.Py.runCode(Py.java:1204)
      at org.python.core.Py.exec(Py.java:1248)
      at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)
      at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
      ... 19 more
    Here the sales.log file is not created in the above directory .I am not getting  where it is actually went wrong.
    I searched for the solution and i could not find any.Please help me out as it is high priority for me.
    I tried to run SQL*Loader through command prompt and i am able to generate the data in the target table and not getting it through ODI.
    Atleast is there any workaround .Please suggest me.
    Environment Details: ODI_11.1.1.7.0, Oracle DB 11g
    Thanks,
    keerthi

    Which agent are you using to execute?
    Standalone? If standalone, did you start it with OPMN?  I've seen such issues with standalone agent started with OPMN.
    Generally these kind of issues occur when you try to run with standalone agent started with OPMN.
    Because OPMN does not have access to the environment shell variables PATH or ORACLE_HOME and therefore the sqlldr.exe binary (or other Oracle product binary) is not found for execution.
    In this case, you need to specify PATH and ORACLE_HOME variables in opmn.xml file like below for your agent(say "MyStandaloneAgent" in this case)
    <ias-component id="MyStandaloneAgent">
    <process-type id="odiagent" module-id="CUSTOM">
      <environment>
         <variable id="ORACLE_HOME" value="C:\oracle\product\11.2.0\client_1"/>
          <variable id="PATH" value="C:\oracle\product\11.2.0\client_1\BIN;$PATH"/>
    After that, start and stop the agent and try the execution once again.

  • Error while using ADF map component

    I am facing problem while using ADF map component to display geographical addresses on the map. Steps I have followed are as follows :
    1. I have created a simple table with structure.
    location_name varchar2(20),
    longitude number(10),
    latitude(10)
    This table is having records for actual values.
    2. I have created BC objects for accessing this table.
    3. Then I have added this data control to the JSP page as a ADF map and point theme. Here I have specified map viewer URL as http://elocation.oracle.com/mapviewer/. I have binded values for longitude and latitude to the values from EO. I have specified point data value as location_name. No value is specified for category.
    With this setup when I try to execute the page, it is throwing following error.
    DVT-26007: Theme mapPointTheme1 cannot be displayed because data at row 0(rowId=0001000000055445535431) does not have value.
    Can someone guide me on this please.....
    Message was edited by:
    user609092

    Hi,
    When we add point theme to the map, we specify the data control binding to this theme. This binding is done against the attribute names from the data control. I want to bind this theme input values to some variables. So that it can be changed at runtime. I think this can be done if we are able to use EL. So is it possible to achieve this? Could you please suggest me any other alternative way to achieve this.
    Thanks,
    Prashant

Maybe you are looking for

  • Flash player not working in windows 7 internet explorer 64bit

    windows 7 - 64 bit adobe flash 11.5 (most recent one as of 11/9/12) Previously i was able to go to a website and view videos. I can no longer view my videos. I uninstalled and reinstalled the newest Adobe Flash that is currently out. When i went to p

  • Trouble writing to all three digital ports

    I am controlling three motors with 24 digital lines, 8 for each. The code is attached. Two of the motors will run but the third always crashes (vibrates and trips). When I swap the ports on the three port configurations I can get ANY two motors to ru

  • Mapbuilder import TTF - Wingdings

    Hi. Mapbuilder (v.11.1.1.0.0) can't see true type fonts like: Wingdings or Webdings in an "import true type font". It's empty after choosing one of this fonts and importing it into mapbuilder. Why ?? Edited by: Monteusz on 2009-11-24 09:20

  • HT201272 Audio books disappeared with update. Help?

    I have an iPhone 4s, which I just updated to iOS 7 and synced to my Macbook, on which I also just updated the software/OS. Before these updates, I purchased several audiobooks on my phone and could easily access them through my phone's iTunes. Howeve

  • Anyone seen damage like this before?

    My son was on a school trip and was rooming with a few friends in a motel room. My son was sitting at the desk in the room, and one of his friends was sitting to his left on the end of the bed with his MacBook Air in his lap. The power cord was conne