Generating control files

hi
i want to generate a control file that contains the column names in it.
the file should pick the column name from the table.
actually i want to move a table through sql loader. for that i require control file.

I had done something similar. Take a look, you may need to amend to suit your requirement -
-- Dynamic CONTROL FILE created on table ->  TEST
SQL> desc test
Name                                      Null?    Type
COL1                                               NUMBER
COL2                                               VARCHAR2(25)
COL3                                               DATE
COL4                                               VARCHAR2(100)
---  DDL scipts to read Table level definition and prepare CONTROL file dymanically
Drop Table Ops_Meta_Data;
Create Table Ops_Meta_Data
   opn_module           Varchar2(10)
  ,opn_step_id          Number(2)
  ,Opn_Type             Varchar2(100)
  ,opn_sub_rtns         Number(2)
Insert Into Ops_Meta_Data Values ('MY_SYS', 1, 'SQL-TRUNCATE STAGE', 8);
Insert Into Ops_Meta_Data Values ('MY_SYS', 3, 'Loader', 8);
Drop Index Ops_Meta_Data_SRtns1;
Drop table Ops_Meta_Data_sub_Rtns;
Create Table Ops_Meta_Data_sub_Rtns
  opn_module           varchar2(10)
,opn_step_id          Number(2)
,opn_type             varchar2(20)
,opn_type_dtl_1       varchar2(20)
,opn_type_dtl_2       varchar2(20)
,rtn_sub_id           Number(2)
,Tgt_Tbl_Nm           Varchar2(30)
,Src_Nm               Varchar2(255)
,Num_Cols             Number(4)
CREATE INDEX Ops_Meta_Data_SRtns1 On Ops_Meta_Data_sub_Rtns (opn_module, opn_type)
Insert Into Ops_Meta_Data_sub_Rtns Values ('MY_SYS', 3, 'Loader', 'DELIMITED', ',', 1,
'TEST','/users/shailender/CTL/MY_SYS/METADATA/data_a.dat', 4);
Drop Index Ops_Meta_Data_colmap_1;
Drop Table Ops_Meta_Data_sub_Rtn_Col_Map;
Create Table Ops_Meta_Data_sub_Rtn_Col_Map
  opn_module           varchar2(10)
,opn_step_id          Number(2)
,opn_type             varchar2(20)
,rtn_sub_id           Number(2)
,col_id               Number(4)
,col_seq              Number(4)
,col_pos_fm           Number
,col_pos_to           Number
,col_name             Varchar2(30)
,col_data_type        varchar2(30)
,col_function         varchar2(255)
CREATE INDEX Ops_Meta_Data_colmap_1 On Ops_Meta_Data_sub_Rtn_Col_Map (opn_module, opn_type, rtn_sub_id)
Insert Into Ops_Meta_Data_sub_Rtn_Col_Map Values ('MY_SYS', 3, 'Loader', 1, 1, 1, Null, Null, 'COL1', NULL, '"TRIM(:COL1)"');
Insert Into Ops_Meta_Data_sub_Rtn_Col_Map Values ('MY_SYS', 3, 'Loader', 1, 2, 2, Null, Null, 'COL2', NULL, '"TRIM(:COL2)"');
Insert Into Ops_Meta_Data_sub_Rtn_Col_Map Values ('MY_SYS', 3, 'Loader', 1, 3, 3, Null, Null, 'COL3', 'DATE', 'DATE(14) ' ||
'''' || 'YYYYMMDDHH24MISS' || '''');
Insert Into Ops_Meta_Data_sub_Rtn_Col_Map Values ('MY_SYS', 3, 'Loader', 1, 4, 4, Null, Null, 'COL4', NULL, '"TRIM(:COL4)"');
----   Run script to dynamically generate the CONTROL (.ctl) file based on data set up in tables
clear screen
set serveroutput on size 999999
Declare
PROCEDURE PR_EXEC_METADATA (pTransId In Varchar2 ) IS
   CURSOR c1 Is
       Select opn_module
             ,opn_step_id
             ,opn_type
             ,opn_sub_rtns
       From   Ops_Meta_Data
       Where  opn_module   = pTransId
       Order By 2;
   TYPE MyTab  Is TABLE of VARCHAR2(255) INDEX By Binary_Integer;
   MyTabCol    MyTab;
   pix         Binary_Integer   := 0;
   iCtrPos     Number           := 0;
   iHead       Number(1)        := 0;
Begin
   pix           := 0;
   iCtrPos       := 1;
   For x In c1 LOOP
          Declare
            CURSOR c2 Is
             Select a.Tgt_Tbl_Nm
                   ,a.Src_Nm
                   ,a.Num_Cols
                   ,b.*
             From   Ops_Meta_Data_sub_Rtns        a
                   ,Ops_Meta_Data_sub_Rtn_Col_Map b
             Where  a.opn_module         = x.opn_module
               And  a.opn_step_id        = x.opn_step_id
               And  a.opn_type           = x.opn_type
               And  b.opn_module         = a.opn_module
               And  b.opn_step_id        = a.opn_step_id
               And  b.opn_type           = a.opn_type
               And  b.rtn_sub_id         = a.rtn_sub_id
             Order By a.opn_type, a.rtn_sub_id, b.col_seq;
          Begin
             pix               := pix + 1;
             For x2 In c2 LOOP
               If ( x.opn_type = 'Loader' ) Then
                  If ( iHead = 0 ) Then
                      MyTabCol(pix) := '         ';
                      pix           := pix + 1;
                      MyTabCol(pix) := 'Load Data';
                      pix           := pix + 1;
                      MyTabCol(pix) := 'INFILE ' || chr(39) || x2.src_nm || chr(39);
                      pix           := pix + 1;
                      MyTabCol(pix) := 'Into Table ' || x2.Tgt_Tbl_Nm;
                      pix           := pix + 1;
                      MyTabCol(pix) := 'Append ';
                      pix           := pix + 1;
                      MyTabCol(pix) := ' Fields Terminated By ' ||  chr(39) || ',' || chr(39) || ' Optionally Enclosed By '
||
chr(39) || '"' || chr(39);
                      pix           := pix + 1;
                      MyTabCol(pix) := 'Trailing NullCols ';
                      pix           := pix + 1;
                      MyTabCol(pix) := '( ';
                      pix           := pix + 1;
                      iHead         := 1;
                  End If;
                 If ( iCtrPos   != x2.Num_Cols ) Then
                    MyTabCol(pix) := x2.col_name || '    ' ||  x2.col_function || ',';
                 Else
                    MyTabCol(pix) := x2.col_name || '    ' ||  x2.col_function;
                    pix      := pix     + 1;
                    MyTabCol(pix) := ') ';
                    iHead         := 0;
                    iCtrPos       := 0;
                 End If;
                 pix      := pix     + 1;
                 iCtrPos  := iCtrPos + 1;
               Else
                  If ( x.opn_type = 'SQL-TRUNCATE STAGE' ) Then
                    EXECUTE IMMEDIATE x2.col_function;
                  End If;
               End If;
            End Loop;
            If ( x.opn_type = 'Loader' ) Then
                iCtrPos   := 0;
               For i In MyTabCol.FIRST..MyTabCol.LAST LOOP
                  Dbms_Output.Put_Line (MyTabCol(i));
               End Loop;
            End If;
          End;
   End Loop;
End PR_EXEC_METADATA;
Begin
  PR_EXEC_METADATA ('MY_SYS');
End;
---- OUTPUT of the SCRIPT
Load Data
INFILE '/users/shailender/CTL/MY_SYS/METADATA/data_a.dat'
Into Table TEST
Append
Fields Terminated By ',' Optionally Enclosed By '"'
Trailing NullCols
COL1    "TRIM(:COL1)",
COL2    "TRIM(:COL2)",
COL4    "TRIM(:COL4)",                                              <----   Last ',' not required + Closing ")"  missing
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.16
SQL>
Shailender Mehta

Similar Messages

  • Using translate for date in the control file !!

    Hi,
    I am having data file where in i expect date but get non-numeric character.
    I am generating control file dynamically (programatically).
    While creating control file i know that here the type of data will be date so i put datatype as date. But at one place i got non numeric character instead of date.
    Now i want to put somekind of logic built in my dynamic generation which will check whether if value within that column is character then make it null and then load data. And if it is numeric keep it as it it.
    i.e.
    if(non-numericChars)
    make value null before loading.
    else
    keep the value as it and then load it.
    I heard that with translate function we can do that. Right ?
    So if i have a line like this in my control file:
    column_Name date "MM/DD/YYYY HH:MI:SS AM"
    How should i write the above statement to put the above mentioned logic.
    Any help would be highly appreciated.
    Regards,
    Dipesh

    and Perhaps TO_DATE can help you :
    TO_DATE
    Syntax
    to_date::=
    Text description of to_date
    Purpose
    TO_DATE converts char of CHAR, VARCHAR2, NCHAR, or NVARCHAR2 datatype to a value of DATE datatype. The fmt is a date format specifying the format of char. If you omit fmt, then char must be in the default date format. If fmt is 'J', for Julian, then char must be an integer.
    Note:
    This function does not convert data to any of the other datetime datatypes. For information on other datetime conversions, please refer to TO_TIMESTAMP, TO_TIMESTAMP_TZ, TO_DSINTERVAL, and "TO_YMINTERVAL".
    The default date format is determined implicitly by the NLS_TERRITORY initialization parameter, or can be set explicitly by the NLS_DATE_FORMAT parameter.
    The 'nlsparam' has the same purpose in this function as in the TO_CHAR function for date conversion.
    Do not use the TO_DATE function with a DATE value for the char argument. The first two digits of the returned DATE value can differ from the original char, depending on fmt or the default date format.
    Note:
    This function does not support CLOB data directly. However, CLOBs can be passed in as arguments through implicit data conversion. Please refer to "Datatype Comparison Rules" for more information.
    See Also:
    "Date Format Models"
    Examples
    The following example converts a character string into a date:
    SELECT TO_DATE(
    'January 15, 1989, 11:00 A.M.',
    'Month dd, YYYY, HH:MI A.M.',
    'NLS_DATE_LANGUAGE = American')
    FROM DUAL;
    TO_DATE('
    15-JAN-89
    The value returned reflects the default date format if the NLS_TERRITORY parameter is set to 'AMERICA'. Different NLS_TERRITORY values result in different default date formats:
    ALTER SESSION SET NLS_TERRITORY = 'KOREAN';
    SELECT TO_DATE(
    'January 15, 1989, 11:00 A.M.',
    'Month dd, YYYY, HH:MI A.M.',
    'NLS_DATE_LANGUAGE = American')
    FROM DUAL;
    TO_DATE(
    89/01/15
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/functions137a.htm#SQLRF06132
    Joel P�rez

  • SQL Loader Username in control file

    Hi,
    Im using SQL Loader to load data. Im going to execute this from a UNIX shell script.
    Here, I have to pass UNIX user name and Oracle user name in the control file.
    How and I do it?.
    Thanks,
    Kannan

    Prashant Tejwani wrote:
    Yup.
    Now i get it.
    You want to load the username of the person who is executing sql loader to load the data in table.
    Right?
    Well, for Oracle Username you can use:
    EMP_ID CHAR(10),
    EMP_NAME CHAR(40),
    UPD_DATE "SYSDATE",
    ORACLE_USER_NAME "user",
    UNIX_USER_NAME "????????"
    I am not sure if we can pass UNIX username because once we execute SQL loader, control file will be executed in Database environment and i dont think any unix syntaxes will hold good there.To achieve the unix username would require the unix script to generate the control file on-the-fly providing the unix username as a fixed value in the control file before it calls sql*loader with that generated control file.

  • Control file for Oracle Restore

    Hello All,
    We are making use of only ABAP stack of SAP ECC 6.0 Sr3 version
    Database version is Oracle 10.2
    how can i generate control file for ABAP stack only for database restore?
    Please Guide
    Best Regards,
    Amol Dounde

    Hi Amol,
    We discussed the issue in my previous threads;
    http://scn.sap.com/thread/3223223
    Best regards,
    Orkun Gedik

  • Add "Trailing Nullcolls" to sql loader control files generated by OWB

    Hi gurus,
    I've got a problem loading data with SQL Loader. I need to add the parameter "trailing nullcols" into the SQL Loader control file generated by OWB. I don't want to do this by saving the skript on my hard disk and run it manually, so any ideas where I can put this parameter? I am using OWB 10.1 on a windows 2000 machine.
    Thanks
    Stephan

    Hi,
    I found the solution to problem.
    1; Select the mapping where you map your source flat file to a table.
    2; Right click on the mapping and select "configure"
    3; Go Sources and Targets -&gt; YOUR_TABLE_NAME -&gt; SQL*Loader Parameters
    4; Set Trailing Nullcols = true :-)
    Thank you to anyone looking at this problem.
    Greetings
    Stephan

  • OWB 10g: how control files are generated?

    We are using OWB 10g within a 10g Database. We want to know how control files are generated by OWB in the file system. The reason we need to know is because our DBAs do not want to create directory objects pointing to NAS devices, their policy states that all directory objects should be on SAN shares. We rather use NAS shares since it simplifies our batch (too long to explain here). OWB has the "CREATE ANY DIRECTORY" privilege granted. Is it using this privilege to create a directory object for the path we specify the control file in the mapping or is it writing directly to this path? We checked the directory objects created (SELECT * FROM DBA_DIRECTORIES) after deploying a control file and it didn't seem to have created any new ones. Anyone knows how OWB creates these control files?

    Yes, indeed that's what we were after. We basically wanted to be sure we are not breaking an internal policy that says that "Oracle directory objects can not be located on NAS shares". The reasoning behind this policy is that NAS shares are not deemed highly available or high I/O devices hence our Oracle DBAs will not allow us to create any Oracle directory objects in NAS shares. The policy states that all database data should be stored in SAN shares which are directly attached to the servers and are therefore high I/O devices. It is arguable if the OWB data we want to load is really part of a database, we believe it is not. There are other implications in our environment about using NAS instead of SAN (NAS can run in active-active mode across different data centres, whereas SAN requires replication since it doesn't usually work well in an active-active mode across different data centres). So based on your answer we should be fine since OWB reads and writes directly to the files without using Oracle Directory Objects which supports our theory that these are not DB specific files and are only "OWB App" files which can then sit on a NAS without breaking the above stated policy.

  • Control file in sapmnt is not generated

    Hi
    In usr/sap<SID>/SYS/Global/sapmnt control file size 1 mb is not generating.
    can any one help me why this file is not generating ..how can we fix this issue.
    regards
    Indshree

    Dear  Indshree,
    What is the SAP Product, OS and DB?
    this file is generating of file size 1 mb ..this is for CI and SCS.
    You mean to say control file for SAP CI ...I never heard about that.
    More over what is the error and where you are getting this error text?
    Regards,

  • Generate a Control File at Random

    hi gurus,
    Can anyone let me know how can I create a control file dynamically.
    i.e. I have to generate the conteol file for any table if I just pass the parameter to a procedure which will be the table name.
    Do anyone have code snippet for this?
    Thanks,

    If you are planning to load to a specific table at the database, and if this set of tables have the same structure I suggest you the following procedure:
    Manually generate one controlfile for a table which will serve just a an stage table. Once you have your control file, use the:
    external_table GENERATE_ONLY
    This will generate a sql file used to create an external table, check it and run it, this will create an external table which will be able to read your outside file just as if this was inside the database.
    Once created, then you can create a sql script which will perform a CTAS or Insert As Select from the external table to the target table.
    ~ Madrid

  • Reports 6.0 and Parameter Lists and Generate to File

    I am using the run_product built in from Forms 6.0 and opening
    up a report passing it several parameters via a parameter list.
    Everything works great when previewing the report.
    There is the option in the report preview under File -> Generate
    to File. When I generate a report to file using any type of
    format it appears that the report does not use the parameters
    that I passed in originally from the form. It appears that it
    looses all the parameters I passed in. This is most concerning
    to me. Am I doing something wrong or is this a "feature" I
    didn't know about? I really would like users to have this
    ability.
    null

    Yes I guess this will work, but the option to generate to file
    is extremely misleading if you ask me. This option should
    generate the current report with the current parameters. This
    is unacceptable as far as I am concerned and should be
    considered a bug. Oracle needs to give us more control over
    FORMS and REPORTS into all too many situations I have been
    frustrated because I am not able to do something that I want to
    do.
    I feel in general REPORTS object is very limited compared to
    crystal reports....
    Dan Paulsen (guest) wrote:
    : Give the user the option on the calling form whether to save
    the
    : report to file or just view it. If they want to save to file,
    : pass the parameter to save to file when you call the report
    and
    : suppress the parameter form, this will eliminate the problem.
    : Spencer Tabbert (guest) wrote:
    : : I am using the run_product built in from Forms 6.0 and
    opening
    : : up a report passing it several parameters via a parameter
    : list.
    : : Everything works great when previewing the report.
    : : There is the option in the report preview under File ->
    : Generate
    : : to File. When I generate a report to file using any type of
    : : format it appears that the report does not use the
    parameters
    : : that I passed in originally from the form. It appears that
    it
    : : looses all the parameters I passed in. This is most
    : concerning
    : : to me. Am I doing something wrong or is this a "feature" I
    : : didn't know about? I really would like users to have this
    : : ability.
    null

  • Drop a datafile from physical standby's control file

    Hi,
    I am trying to create a physical standby database for my production...
    1) I have taken cold backup of my primary database on 18-Nov-2013...
    2) I added a datafile on 19-nov-2013 ( 'O:\ORADATA\SFMS\SFMS_DATA4.DBF' )
    3) Standby control file was generated on 20-ov-2013 (today) after shutting down and then mounting the primary database...
    When i try to recover the newly setup standby using archive files, i am getting the following error (datafile added on 19th Nov is missing)
    SQL> recover standby database;
    ORA-00283: recovery session canceled due to errors
    ORA-01110: data file 39: 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    ORA-01157: cannot identify/lock data file 39 - see DBWR trace file
    ORA-01110: data file 39: 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    How to overcome this situation...
    Can i delete the entry for the newly added datafile from the backup control file ?
    When i tried to delete datafile using "alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF';", it is showing that database should be  open..
    SQL> alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    ERROR at line 1:
    ORA-01109: database not open
    SQL> show parameter STANDBY_FILE_MANAGEMENT
    NAME                                 TYPE        VALUE
    standby_file_management              string      AUTO
    SQL> alter system set STANDBY_FILE_MANAGEMENT=manual;
    System altered.
    SQL> show parameter STANDBY_FILE_MANAGEMENT
    NAME                                 TYPE        VALUE
    standby_file_management              string      MANUAL
    SQL> alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    ERROR at line 1:
    ORA-01109: database not open
    Regards,
    Jibu

    Jibu wrote:
    Hi,
    I am trying to create a physical standby database for my production...
    1) I have taken cold backup of my primary database on 18-Nov-2013...
    2) I added a datafile on 19-nov-2013 ( 'O:\ORADATA\SFMS\SFMS_DATA4.DBF' )
    3) Standby control file was generated on 20-ov-2013 (today) after shutting down and then mounting the primary database..
    Hi,
    What is your version?
    If you added new datafile or created new tablespace, take backup again for restore new created standby database.
    If your standby  database running well, DG configuration success, then this datafile will create on standby side, too.
    Set STANDBY_FILE_MANAGEMENT=AUTO best practice.
    When i try to recover the newly setup standby using archive files, i am getting the following error (datafile added on 19th Nov is missing)
    SQL> recover standby database;
    ORA-00283: recovery session canceled due to errors
    ORA-01110: data file 39: 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    ORA-01157: cannot identify/lock data file 39 - see DBWR trace file
    ORA-01110: data file 39: 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    How to overcome this situation...
    Can i delete the entry for the newly added datafile from the backup control file ?
    Not need any delete datafile from standby side, you must recreate standby database, or you can  take RMAN backup and restore to standby  side again.
    When i tried to delete datafile using "alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF';", it is showing that database should be  open..
    SQL> alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    ERROR at line 1:
    ORA-01109: database not open
    SQL> show parameter STANDBY_FILE_MANAGEMENT
    NAME                                 TYPE        VALUE
    standby_file_management              string      AUTO
    SQL> alter system set STANDBY_FILE_MANAGEMENT=manual;
    System altered.
    SQL> show parameter STANDBY_FILE_MANAGEMENT
    NAME                                 TYPE        VALUE
    standby_file_management              string      MANUAL
    SQL> alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    alter tablespace SFMS_BR_DATA drop datafile 'O:\ORADATA\SFMS\SFMS_DATA4.DBF'
    ERROR at line 1:
    ORA-01109: database not open
    It is not logical, Physical  standby must be bit-for-bit same with Primary  database.
    Regards
    Mahir M. Quluzade

  • How can I keep lion from generating .DS_Store files on windows network partitions, but not disable it for all network partitions?

    How can I keep lion from generating .DS_Store files on windows network partitions, but not disable it for all network partitions?  I am fimilar with changing the setting for all network partitions(defaults write com.apple.desktopservices DSDontWriteNetworkStores true), but that is undesirable when I connect my laptop to my home network. A preferable solution would be where I could control the writing of these files based on disk format (NTFS vs HFS+).

    Go to MacUpdate or CNET Downloads and search for ds_store. There are numerous utilities for preventing them from being transferred to Windows systems.

  • Regarding RESETLOG and NORESETLOG option while creating a control file

    Hi,
    I dont understand the need for resetlogs option while creating a controlfile for a db in NOARCHIVELOGMODE. I assume that reset logs clears all the redo log contents.
    While taking a cold backup what I did was:
    1. Shutdown instance
    2. Copy all the files
    3. Startup
    Now I tried recovering the same database on a new machine (with different path btw.) coz of which i had to create a new control file. My question is: while restoring the database, do I need to create the control file with NORESETLOG or RESETLOG option?
    When I tried using the NORESETLOG (NOARCHIVELOG) option I was able to recover the instance without any hassles.
    ie
    1. STARTUP NOMOUNT
    2. CREATE NEW CONTROL FILE USING NORESETLOG (NOARCHIVELOG)
    3. RECOVER DATABASE
    4. ALTER DATABASE OPEN;
    While the same thing with NORESETLOG (NOARCHIVELOG) option:
    1. STARTUP NOMOUNT
    2. CREATE NEW CONTROL FILE USING RESETLOG (NOARCHIVELOG)
    3. RECOVER DATABASE USING BACKUP CONTROLFILE
    This step asked me for some archivelogs which were not generated since the db is in NOARCHIVELOG mode.
    I wonder why we require the RESETLOG OPTION SINCE A NORMAL SHUTDOWN PERFORMED BEFORE COLD BACKUP would have ensured that there is no redo information left in the redo logs.
    Please let me know if I am thinking the incorrect way.
    Regards and Thanx in Advance,
    Raj

    If you had a db running in noarchivelog mode and had to clone the db and rename it, the create controlfile stmt:
    create controlfile reuse <db_name> needs to be changed to: create controlfile SET <db_name>, in which case the db can only be opened with resetlogs. Hope this answers your question

  • Error while Generating WSDL File from SAP WSDLGenerator

    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
       at WebServiceDescription.SelectOperation.ShowUDOsList(String sessionID)
       at WebServiceDescription.SelectOperation..ctor(String sessionID)
       at WebServiceDescription.WsdlServicesGenerator.ShowOptions()
       at WebServiceDescription.Form1.btCreateWsdl_Click(Object sender, EventArgs e)
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
        CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    WsdlServicesGenerator
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program%20Files/SAP/SAP%20Business%20One%20Web%20Services/WsdlServicesGenerator/WsdlServicesGenerator.exe
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    System.Xml
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    System.Web.Services
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
    System.Configuration
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    axh7tjvl
        Assembly Version: 1.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    o_2nbqv_
        Assembly Version: 1.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
    I am facing problem While Generating WSDL File from WSDL Geerator which is provided by SAP Business One
    If any body has resolved this. Please help Me...!
    Thanks
    Mritunjay

    Hi.
    We've seen that error too few times.
    We downloaded the sourcecode for the wdsl generator and discovered,
    that in our case, it was because we had no user defined objects.
    Its actually a bug as far as I can see, where the wdsl generator tries
    to enumerate a empty recordset, and crashes.
    Regards
    Jørgen T.

  • Generation of Control file in OWB Mapping.

    Hi All,
    OWB config details is as follows:
    OWB 9i :9.2.0.2.8
    OWB Repository: 9.2.0.2.0
    OWB 9i Client OS: Windows XP Environment
    Oracle DB 9i Enterprise Edition 9.2.0.1.0-64 bit Production on IBM AIX machine.
    I developed mapping which involved a source file (CSV) & oracle table as target.
    Validated & Generated mapping. No error displayed.
    Configured mapping set Data File Location, Bad File Location, Log File Location (All these parameters were set to point to different directories in unix.)
    Registered all the above location in Deployment Manager.
    Deployed the mapping & executed mapping.
    I was expecting control file generated by mapping to create on unix partition, however many times it did save on my local machine on Windows XP rather than on unix. The control file created in the local directory where OWB client is installed.
    When the same mapping is executed from another machine still the file was created on my local machine.
    This was observed after I created file location for Bad file & Log file from OWB.
    Why does control file is created on local machine rather than Unix Server?
    Can someone please let me know more on this?
    Thanks in Advance.
    Regards,
    Vidyanand

    Hi Vidyanand
    You may try to register physical file location under one logical location. Then register the location with physical datafile lication. It worked for us.
    Cheers, Bana

  • Lost all Control files (Want to Recover)

    Hi
    I have a database in archive log mode and we take a rman hot backup everyday. We are not using the recovery catalog. I lost all the control files
    few days ago. I have a control file to trace and that was generated 20 days ago. This is our test database. I want to recover it. I don't know if we have
    done any physical changes or not after the creation of this text file to create a control file. Database is still up and running.
    Any help will be appreciated?
    Thanks in Advance

    If the control is restored from the rman backup lets say it is 3 days old, then how to update the same control file with the current database statistics.
    --Luckys.                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for