How to read success/failure message while running sqlldr through php?

Hi All,
currently i am running sqlldr through PHP . i want to read both success and failure message from sqlldr.
sometimes it fails to load data, but it shows record inserted
is there ant way to figure it out succ or failure?

With SQL Loader you can get errors at several levels.
At the command line level by reading $? after it runs since it sets $ERROR_LEVEL correctly.
It also creates many types of log files which can then be parsed that include but are not limited to:
The [control file name].log and the [control file name].bad file which are created wherever you would like them to be created and named any way you would like them. The [control file name].bad file contains all records that were considered unacceptable by SQLLDR and therefor simply testing for that files existence will start you down the road to programatically dealing with errors.
Yes I know the documentation for SQLLDR is worse then stereo instructions that started out in Japanese, then were translated to Greek then to Korean then finally into English but there are some pretty good examples out there.

Similar Messages

  • How to return success/failure message in a VBA program that uses ADODB

    I have this little VBA program that uses ADODB to execute a SQL Server Agent job remotely.  How do I add a message box at the end that would give some feedback to the user, if the execution command was successfully sent to the server or if it failed?
    Sub Test_SSIS()
    Dim conn As Object
    Set conn = CreateObject("ADODB.Connection")
    conn.Provider = "sqloledb"
    conn.Properties("Prompt") = adPromptComplete
    conn.Open = "Data Source=MYSERVER;USER ID=JOHNDOE;"
    conn.Execute "exec msdb.dbo.sp_start_job 'Test_remote_job_execution'"
    End Sub

    Hi Tim,
    When I looked up the BOL about the ADO.Connection
    EXECUTE method, something came to my sight.
    "An ExecuteComplete event will be issued when this operation concludes." You may reference the
    ExecuteComplete. A quick glance at the event, it contains the execute result set and errors if occured.
    Regarding your description, your question is more relevant about VBA, I suggest you post your question on a dedicated VBA forum. It is appropriate and more experts will assist you.
    Here is a relevant link you can reference
    Visual Basic of Application
    If you have any feedback on our support, please click
    here.
    Eric Zhang
    TechNet Community Support

  • How to read the error message like clipping positive or -ve in Tektronix oscillioscope 3012B

    During acquiring the Sine wave or triangular wave from TDS3012B, if the amplitude or Max or min is clipping, how do you read the error?  I used *ESR?, first time when I ran the error query program, it gave me Error message saying it is clipping, after that If I run again,the error query , It would not give me the error message, I couldn't reproduce it, eventhough but On the screen if I measure, Amp, min and Max it says that it is clipping positive or -ve. I was wondering how to read the error message while aquiring the data?  If any one could help me that would be of great help.. Thanks

    Usually, reading the error status register clears it. I'm not familiar with this particular model of scope but you may have to initiate a new acquisition in order for the scope to generate a new error. Another possiblity is that a new error will be generated when the vertical scale changes. Unless someone posts with an answer, I'd say that your best bet to get an answer is to contact Tektronix technical support.

  • Displaying messages while running BEx queries.

    Hi Experts,
    Can any one explain me is there any possibility to display some popup messages while running BEx queries?
    Regards,
    Anusha

    Hi there,
    You can do taht with user exit variables with the code something like this:
      WHEN 'YOUR_VARIABLE'.
        if i_step = 2.
        LOOP AT eto_charsel INTO ln_charsel.
    *some validation of your own
          if ln_charsel-low NE '1'.
    *call function to send a message, in this case, an error message
             CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
               EXPORTING
                 i_class  = 'ERROR!'
                 i_type   = 'E'
                 i_number = '000'
                 i_msgv1  = 'Please connect again and'
                 i_msgv2  = 'use the Revision Layout'.
                 RAISE no_processing.
          endif.
        ENDLOOP.
        endif.
    Diogo.

  • Error message while running the payroll-no entry found in table t54c1

    Hi All,
    Im getting this error-error message while running the payroll-no entry found in table t54c1.What is the reason for this error?
    How doi solve it?

    Hello
    From the description of your problem above, your cumulation calender has not been generated for that month.
    Please take necessary action to ensure that calendar type is assigned to pay period in payroll area, by maintaining the payroll period which is represented by Date modifier and period modifier in view maintainance for table T54C1.
    Entries for this table are generated with the program RPUCTP10. (You should not have to create manual entries in this table.)
    Thanks and Kind Regards
    Ramana

  • Getting an error message while running FX script logic

    We are getting the following error message, while running the FX script logic - RUN_LOGIC:MDX statement error:"Value (Entity value) for characteristic /CPMB/U8D5FIT".  Any help is truly appreciated.  We are using the standard FX logic scrip *RUN_PROGRAM CURR_CONVERSION

    Hi,
    Hope all the required currency configuration settings are followed in Entity, Input currency, Category, Account correctly. Also reporting currency indicates the right reporting currency with the 'Reporting' propert set to 'Y' to the currency that you want to report in.
    For the period that you are running the currency trans, could you also maintain rates for the reporting currency as 1.
    Check your rate data. And please post your currency conversion script here.
    Thanks,
    Sreeni

  • "Failed to load excel file" an Error Message while running TDS upgrade util

    Dear All,
    "Failed to load excel file" an Error Message while running TDS upgrade utility when clicking on CHECK DATA.
    Please help me out on this!!!!!!!!!!!!
    Thanks..........

    Not all data can be exported to Excel easily. Especially if the query result is huge or there are special characters in the query results. You may try the most updated version.
    Thanks,
    Gordon

  • I am using windows 7 starter,just downloaded itunes 10.5.2,while install getting prompt,cannot read ipodservice.exe,and after install itunes is not read iphone or ipod while plugging in through usb cable. Any ideas ,whats going wrong?

    I am using windows 7 starter,just downloaded itunes 10.5.2,while install getting prompt,cannot read ipodservice.exe,and after install itunes is not reading iphone or ipod while plugging in through usb cable. Any ideas ,whats going wrong?

    problem solved.
    I phone 4s screen froozen

  • How to set attched file name while sending email through ABAP

    Hi All- tell me how to set attched file name while sending email through ABAP.
    regards...
    Abhay

    Sure,  when you are adding your entry to the packing list,  give the name in the obj_name field.
    *File 2
      mailbin = 'This is file 2'.
      append mailbin.
      data: start type i.
      data: end type i.
      start = tab_lines + 1.
      describe table mailbin lines end.
      mailpack-transf_bin = 'X'.
      mailpack-head_start = 1.
      mailpack-head_num = 1.
      mailpack-body_start = start.
      mailpack-body_num = end.
      mailpack-doc_type = 'TXT'.
      mailpack-obj_name = 'TEST2'.        "<-  RIGHT HERE
      mailpack-obj_descr = 'Subject'.
      mailpack-doc_size = tab_lines * 255.
      append mailpack.
    Regards,
    RIch Heilman

  • BPM - PI/XI Integration to get success/failure message from PI into BPM?

    Hello Experts,
    I happen to run into following scenario:
    I have a BPM Process created in NWDS CE 7.2. This process allowes to create a record in SAP. When a user requests to create a record and fill out the required details, it goes to approver for approval. Upon approval, record gets checked-in to MDM and then from MDM it is syndicated to SAP R3 using an IDOC. Now, what I need is, if PI/XI is succesful to create that record in R3, then the success message should be sent to BPM for performing some further actions. And if it is a failure message returned from PI/XI then BPM will take a different lane.
    Can I do this? If yes how? I read about PI Integration Repository, Java Mapping APIs etc but to be frank I am not able to understand it at all. Please help.
    Ameya

    Thanks John,
    Before I close this thread, following are my understandings:
    1) I need an intermediate event who's trigger will be mapped to PI service
    2) That means, PI will use this webservice for sending the reply back to BPM event
    3) Accordingly BPM flow will be decided
    End-point URL is the WS URL and that is also available in WS Registry. Apart from this, whatever PI side configurations or development is required that is out of our purview. Is that correct?
    Ameya

  • Getting error message while running forms(Forms11g) using port 8888

    Hi ,
    I am facing one issue while running forms.By using http://localhost:9001 forms are working fine.
    When i use http://localhost:8888 it is showing Internet explorer can not display this page.
    It seems it has some issue while installing forms 11g developer suit.
    Below are the details of forms and web logic versions.
    forms 11.1.2.0.0
    web logic server : 10.3
    Can you please help me to run the forms using 8888 port.
    Thanks,
    Kalpana.

    Check the port numbers 8888 is allowed by default to Oracle WebCenter Spaces
    http://docs.oracle.com/cd/E14571_01/core.1111/e10105/portnums.htm#ASADM432
    don't know exaclty how you can change the port, maybe in config files
    see this thread :
    {message:id=4446974}
    Regards
    Jean-Yves
    Edited by: JeanYves Bernier on 15 déc. 2012 00:20

  • Error Message While Running Sequence from Planning and/or SmartView

    Following error is thrown while running a sequence from either planning or smartview at a higher level.
    "*An error occurred while running the specified calc script. Check the log for details*"
    This is very weird because it does not happened with any of the following:
    1. Running same sequence from AAS at higher level
    2. Running at lower level entity either planning or smartview
    3. Running from Planning or smartview with split sequence at higher level
    4. Running each rule within the sequence from Planning or smartview
    What have we done?
    1. Checked every log file, Essbase, Planning, HBR - no error message is logged despite above statement.
    2. Recycled environment
    3. Stopped and restated DB and APP
    Other info:
    1. DB.log file is 1.2gb
    2. No meta data changes
    3. We could not able to replicate same in Q and Dev
    4. Looked at cache setting
    5. Sequence does not fail at the same place
    6. Recently updated calclockblockhigh to 15000 (restarted environment)
    Environment:
    Planning suite: 9.3.0.1 with 9.3.1 APS.
    We are going nuts and any feedback is greatly appreciated!
    Thanks!
    Edited by: venuramini on Jul 9, 2009 3:50 PM
    Added environment section.

    Hi,
    To start Planning as a foreground app, stop the Planning service and then go to Start - Programs - Hyperion Solutions - Hyperion Planning - Start Planning (Apache Tomcat).
    Thats if you are using Tomcat of course. A DOS window should then pop.
    What value did you enter for the HBR properties? Have you tried 960000 for both? Remember you need to restart the Planning services for changes to take effect.
    Have you tried increasing some of the properties in the HBRServer.properties under Hyperion\AnalyticAdministrationServices such as:
    HBR.timeout
    Try setting it to 30000
    The restart the AAS service for the changes to take effect.
    Hope this helps.
    Seb

  • Error message while running a query

    Hello experts,
    While running a query I am getting an error message as :
    Abort error 'connection closed (no data) in RSRDC_CUBE_DATA_GET_RFC could not
    Abort system error in program SAPLRRK0 and form RSRDR; SRRK0F30-01-
    please advice what are these errors, cause and resolution for these errors.
    Thanks,
    Anamika

    Hi Anamika,
             If you are running your query in Web Portal, it seems your web portal is not defined in RFC connection with system. Ask BASIS to connect it.
             Also, You can run your report in RSRT with ABAP Web option and check if it is working on ABAP engine.
    Regards,
    Harpal
    Edited by: Harpalsinh Gohil on Aug 17, 2009 2:53 PM

  • DAC message while running execution plan - "Error while loading nodes"

    I have just installed and setup Informatica 8.6.1, DAC, BI apps 7.9.6 for a Oracle Ebs R12.1.1 source instance
    In informatica I have defined 2 relational sources "DataWarehouse" and "ORA_R1211" - the same names as in physical data sources of DAC
    I have mentioned the flatfile parameter as "ORA_R1211_Flatfile" in DAC
    after successfully build, when I run the ETL the error "Error while loading nodes" occurs.
    the log file shows the following details:
    START OF ETL
    20 SEVERE Sat Apr 23 21:57:58 GST 2011
    ANOMALY INFO::: Error while loading nodes.
    EXCEPTION CLASS::: java.lang.NullPointerException
    com.siebel.etl.engine.core.SessionHandler.getNodes(SessionHandler.java:2842)
    com.siebel.etl.engine.core.SessionHandler.loadNodes(SessionHandler.java:473)
    com.siebel.etl.engine.core.ETL.thisETLProcess(ETL.java:372)
    com.siebel.etl.engine.core.ETL.run(ETL.java:658)
    com.siebel.etl.engine.core.ETL.execute(ETL.java:910)
    com.siebel.etl.etlmanager.EtlExecutionManager$1.executeEtlProcess(EtlExecutionManager.java:210)
    com.siebel.etl.etlmanager.EtlExecutionManager$1.run(EtlExecutionManager.java:165)
    java.lang.Thread.run(Thread.java:619)
    21 SEVERE Sat Apr 23 21:57:58 GST 2011
    *     CLOSING THE CONNECTION POOL DataWarehouse
    22 SEVERE Sat Apr 23 21:57:58 GST 2011
    *     CLOSING THE CONNECTION POOL ORA_R1211
    23 SEVERE Sat Apr 23 21:57:58 GST 2011
    END OF ETL
    *****************

    Hi,
    Mark the current EP as completed and re-assemble the subject area, generate parameters and build the EP and run the load.
    Thanks,
    Navin KumarBolla

  • How to find the missing fonts while running the script?

    hi,
    I need to create a script to find the missing font. not only for that. Actually i created a script to read the file properties. but i have a problem while running the script.
    I have put "User Interation Level" to never interact. Even i need to check wheather each file have "missing fonts". mean time i never stop the script.
    Is It Possible???
    Regards,
    SubhaOviya

    Here's a shot of the Find Font Dialog:
    Papyrus (highlighted in the list) is missing, and there's a yellow warning triangle to show that. Fonts that ar not missing have an icon to show the type of font. You'll also see it shown as missing in the "Info" box at the bottom of the dialog.
    If you use the Replace With dropdown you will only see fonts listed that are installed on the system. In order to actually use the missing font, rather than substitute a different font in its place, you must obtain and install the missing font on the system.
    Are you seeing something different when you open Find Font?

Maybe you are looking for

  • Capturing HDV 1080i50 with Sony HVR-Z1U

    Long winded question... hope someone can offer some insight. The answer to this may have been posted earlier, but sifting through the topics, I couldn't find any relating. If someone could be so kind to link me to any related topics, that would be he

  • Using extended desktop mode with ThinkPad x220

    I have an Acer AL2216W external monitor. It has a resolution of 1680 x 1050 http://support.acer.com/acerpanam/monitor/0000/Acer/AL2216W/AL2216Wsp2.shtml When I use extended desktop mode with the external monitor set as the primary display, everything

  • How to get the Server Certificate Chain File?

    Hi all, I config the SSL for weblogic 6.0 on a Win2k Machine .I followed WebLogic documentation: Generate a private key file, then submit to Verisign, get the certificate file. Because I have only one WebLogic server. I clear the "Server Certificate

  • Reverse Proxy Problem

    Hi! I am configuring Oracle iPlanet is 7.0.15 to have one instance reverse proxy to another instance. They are different only in port numbers. The destination port is 2321. I have set up the reverse proxy in Content Handling -> Reverse Proxy setting.

  • Which kind of paper is suitable for printing best quality photo by hp officejet 4500 wireless?

    Hi I have a "hp officejet 4500 wireless" printer and want to print best quality photo from my digital camera. Which kind of paper is suitable for my job? Please kindly advice me. Best regards, Faezeh Dibaei