Problem in manipulation the database

Hi All,
Is it possible to manipulate the database table dierectly using the recordset object or SQL Query.
Thanks & Regards
Kirti

hi kirti,
It is prohibited to manipulate the database tables directly using the Recordset object or SQL statements (DML actions), because SAP Business One does not validate the updated tables and therefore forward compatibility is not guaranteed.
DML operations are acceptable with the Recordset object for user tables only. For other business objects use only the relevant DI objects and not the Recordset object.
Any DML operations on system tables pose a high risk for data corruption, and will not be supported. Use at your own risk.
regards
nirdesh panwar

Similar Messages

  • Problem in getting the database connection from a connection pool

    Hai All,
    I am facing a problem in getting the database connection from a connection pool created on weblogic server 8.1.
    I am using the Oracle database 8.1.7.
    I have configured my connection pool, datasource and JNDI in weblogic.
    In my java program i have the following code to retrieve the connection.
    import java.sql.*;    
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    class jdbcshp1 {
        public static void main(String[] args) {
         Connection connection = null;
         try {
               Hashtable ht = new Hashtable();
               ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");  // Wanna get rid of this.
               ht.put(Context.PROVIDER_URL,"t3://localhost:7001"); // wanna get rid of this.
               // Get a context for the JNDI look up
               Context ctx = new InitialContext(ht);
            javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("myjndi1");
              //Create a connection object
              connection = ds.getConnection();
         The above code is working fine but, the two ht.put statements are creating problem.
    The problem is, after converting the application into WAR file it can be deployed
    on any machine or different port on same machine. My application fails if its deployed on
    weglogicserver which is at different port.
    Is there any way that i can get rid of those ht.put statements or any other way to solve the problem.
    any help is appreciated.
    Thanks in advance
    Pooja.

    Hai All,
    Firstly, thanks for ur reply.
    Even i have seen some code which uses context constructor with out any parameter and works fine.
    i dont understand why its not working for my code.
    When i remove those ht.put code and use context constructor with out any parameter, it giving an error.
    Context ctx = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("ocjndi");
    connection = ds.getConnection();The error is as follows:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    the above error is forcing me to include those code but if the port number is changed the code will not work. Plz let meknow if some setting have to be made.
    I appreciate all ur valuable help.
    Thanks once again.
    Pooja.

  • Problem in accessing the database through VPN

    I am having problem connecting to the database through VPN but it is working perfectly fine if i connect to the network directly.
    It would be really great if you could help me to resolve this issue.
    Thanks

    I am having problem connecting to the database through VPN but it is working perfectly fine if i connect to the network directly.Fix the VPN problem.
    Check the logfiles.
    For better advice provide any meaningful detail.
    If I do not poke myself in the eye, it does not hurt.
    Tell me to to stop feeling pain.

  • Problem in bringing the database up

    Hi,
    I am facing this problem while bringing the database up :-
    ORA-01190: control file or data file 21 is from before the last RESETLOGS
    ORA-01110: data file 21: '/fnb/dbdevices2/ora10g_scmb/scmbdata06.dbf'
    What i did just before that was i brought two datafiles ONLINE one of them is :-
    '/fnb/dbdevices2/ora10g_scmb/scmbdata06.dbf' as given in the error.
    I have been able to mount the database and when i try to bring these datafiles offline it gives same error
    and also i tried to drop the datafile and on doing that i get disconnected from Oracle.
    Can anyone please help in this.
    Regards,
    kapil

    you'll want to log an SR to go through this with support. It looks like you took the file OFFLINE a while ago, then did an open resetlogs whilst the file was offline, and then tried the operation you described. In the case of READ-ONLY datafiles where the file header details don't get updated and a similar issue arises then there is a supported procedure to restore the file to the database. In your case I'm not sure if there is a supported route for you to go down.
    Niall Litchfield
    http://www.orawin.info/

  • Facing problem while changing the database at runtime

    hi everyone,
    Before posting this thread, i have gone through the various posts addressing the problem....but still iam unable to get the solution for this problem.
    The report has been generated in one system, so the database properties (connection string....) are hardcoded in the report file...
    Now when iam trying to change the database, it is still connecting to the system where the report file was created.
    I have tried the changeDatasource() method, but it didnot worked....
    here is the code for changeDatasource() method
    public static void changeDataSource(ReportClientDocument clientDoc,
                    String reportName, String tableName,
                    String username, String password, String connectionURL,
                    String driverName,String jndiName) throws ReportSDKException {
            PropertyBag propertyBag = null;
            IConnectionInfo connectionInfo = null;
            ITable origTable = null;
            ITable newTable = null;
            // Declare variables to hold ConnectionInfo values.
            // Below is the list of values required to switch to use a JDBC/JNDI
            // connection
            String TRUSTED_CONNECTION = "false";
            String SERVER_TYPE = "JDBC (JNDI)";
            String USE_JDBC = "true";
            String DATABASE_DLL = "crdb_jdbc.dll";
            String JNDI_DATASOURCE_NAME = jndiName;
            String CONNECTION_URL = connectionURL;
            String DATABASE_CLASS_NAME = driverName;
            // The next few parameters are optional parameters which you may want to
            // uncomment
            // You may wish to adjust the arguments of the method to pass these
            // values in if necessary
            // String TABLE_NAME_QUALIFIER = "new_table_name";
            // String SERVER_NAME = "new_server_name";
            // String CONNECTION_STRING = "new_connection_string";
            // String DATABASE_NAME = "new_database_name";
            // String URI = "new_URI";
            // Declare variables to hold database User Name and Password values
            String DB_USER_NAME = username;
            String DB_PASSWORD = password;
            System.out.println("DB_USER_NAME......."+DB_USER_NAME);
            System.out.println("DB_PASSWORD......."+DB_USER_NAME);
            // Obtain collection of tables from this database controller
            if (reportName == null || reportName.equals("")) {
                Tables tables = clientDoc.getDatabaseController().getDatabase().getTables();
                System.out.println("Tables in reports........"+tables.size());
                for(int i = 0;i < tables.size();i++){
                    origTable = tables.getTable(i);
                    System.out.println("origTable........"+origTable.getQualifiedName());
                    if (tableName == null || origTable.getName().equals(tableName)) {
                        newTable = (ITable)origTable.clone(true);
                        // We set the Fully qualified name to the Table Alias to keep the
                        // method generic
                        // This workflow may not work in all scenarios and should likely be
                        // customized to work
                        // in the developer's specific situation. The end result of this
                        // statement will be to strip
                        // the existing table of it's db specific identifiers. For example
                        // Xtreme.dbo.Customer becomes just Customer
                        newTable.setQualifiedName(origTable.getQualifiedName());
                        System.out.println("newTable........"+newTable.getQualifiedName());
                        // Change properties that are different from the original datasource
                        // For example, if the table name has changed you will be required
                        // to change it during this routine
                        // table.setQualifiedName(TABLE_NAME_QUALIFIER);
                        // Change connection information properties
                        connectionInfo = newTable.getConnectionInfo();
                        // Set new table connection property attributes
                        propertyBag = new PropertyBag();
                        // Overwrite any existing properties with updated values
                        //propertyBag.put("Trusted_Connection", TRUSTED_CONNECTION);
                        //propertyBag.put("Server Type", SERVER_TYPE);
                        propertyBag.put("Use JDBC", USE_JDBC);
                        propertyBag.put("Database DLL",DATABASE_DLL );
                        propertyBag.put("JNDI Datasource Name",JNDI_DATASOURCE_NAME );
                        propertyBag.put("Connection URL", CONNECTION_URL);
                        propertyBag.put("Database Class Name", DATABASE_CLASS_NAME);
                        //propertyBag.put("Server Name", SERVER_NAME); //Optional property
                        // propertyBag.put("Connection String", CONNECTION_STRING); //Optional property
                        // propertyBag.put("URI", URI); //Optional property
                        connectionInfo.setAttributes(propertyBag);
                        // Set database username and password
                        // NOTE: Even if the username and password properties do not change
                        // when switching databases, the
                        // database password is *not* saved in the report and must be set at
                        // runtime if the database is secured.
                        connectionInfo.setKind(ConnectionInfoKind.SQL);
                        connectionInfo.setUserName(DB_USER_NAME);
                        connectionInfo.setPassword(DB_PASSWORD);
                        // Update the table information
                        clientDoc.getDatabaseController().setTableLocation(origTable,newTable);
    Also i tried with replaceConnection() method...........it displayed the report, but with not column names and data
    need help regarding.......
    Edited by: abhishek.c1984 on Jun 25, 2009 10:02 AM

    In the report i have two tables.............so before changing the database properties for each table iam printing their names.
    The names are dispalyed correctly.......but once i set the table location...i.e through the following method..
    clientDoc.getDatabaseController().setTableLocation(tables.getTable(i),newTable);
    every time i can see only one table i.e. properties are set for the first table ........and each time the properties are being set for the first table only.....i dont no what is happening to the rest of the tables..
    I have posted the method in the above post.....can any one please trace out the problem
    Note: when i comment the following code, i can see all the tables
    clientDoc.getDatabaseController().setTableLocation(tables.getTable(i),newTable);
    when i uncomment it, i can see only first table repeating every time...
    Edited by: abhishek.c1984 on Jun 25, 2009 1:03 PM

  • Problem in starting the database

    hi for all
    i have installed successfully 10g on my redhat system and it is just work fine , but after the first reboot it gives me this error on sqlplus
    Enter user-name: system
    password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    when trying to login via isqlplus gives me this error
    TNS:listener does not currently know of service requested in connect descriptor
    so i run dbca and i have deleted the database and created a new one and it's again work fine i reboot the system again the above errors again occurs.
    thanks

    The problem here is that neither your database nor your listener are started. You should use regular commands to start them up.
    sqlplus /nolog
    conn / as sysdba
    startup
    exit
    lsnrctl start
    export ORACLE_SID=instanceName
    emctl start dbconsole
    If you want to start services automatically, then you should configure your linux environment to start processes automatically at OS start time.
    For automatic startup / shutdown you may want to check Oracle documentation: 2.2 Automating Shutdown and Startup
    ~ Madrid.

  • Problem in Restoring the database the database

    Hi guys,
    I am new to oracle , I am facing one problems is that , i having the backup of one oracle database in .dmp format.
    I have to restore it to 9i database. for that i have created on database , how to restore the backup file over the new database using oracle management server.
    Please give me the clue to do the things.

    1. setup your oracle environmentals and path. Usually this is easy to do if your database name is in your oratab file. From the command line type . oraenv -- that is dot-space-oraenv. When prompted enter the database sid in the same case that it is in the oratab file.
    2. from the command prompt enter
    imp file=<your dump file name> log=<your import log file name> full = y, ignore = y
    You will be prompted for username and password.
    More detailed information is available in the database administrators guide, and I thing the utilities guide.

  • Problem in Restoring the database

    Hi,
    I want to restore the database
    RMAN> startup force mount;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 07/20/2009 17:06:56
    RMAN-04014: startup failed: ORA-12514: TNS:listener does not currently know of s
    ervice requested in connect descriptor
    can anybody help on this.

    Hi,
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Cause:      The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
    Action:      
    - Wait a moment and try to connect a second time.
    - Check which services are currently known by the listener by executing: lsnrctl services <listener name>
    - Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
    - If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
    - Check for an event in the listener.log file.
    Regards,
    Tom

  • Problem in recovering the database!!!

    Hi All,
    I created a new database and wanted to restore the backup of another database into it, I created the required tablespaces and started restore of backup from RMAN using
    run {
    allocate channel 'dev_0' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=orcl,OB2BARLIST=DAILY_HISDBS01_ORACLE-DB_ONLINE_5W,OB2BARHOSTNAME=hisdbs01.kfmc.med)';
    restore controlfile from 'c-1179279249-20090511-02';
    alter database mount;
    release channel 'dev_0';
    The controlfile got restored successfully, then I tried to restore & recover the database
    run {
    allocate channel 'dev_0' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=central,OB2BARLIST=DAILY_HISDBS01_ORACLE-DB_ONLINE_5W,OB2BARHOSTNAME=hisdbs01.kfmc.med)';
    restore database;
    recover database;
    release channel 'dev_0';
    The restore was successful, but when I tried to open the database with resetlogs option
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '+DATADG/orcl/datafile/system.295.686609187'
    SQL> recover database using backup controlfile until cancel;
    ORA-00279: change 1136286903 generated at 05/11/2009 02:08:22 needed for thread1
    ORA-00289: suggestion : */arch/archivelog/1_8493_651861624.dbf*
    ORA-00280: change 1136286903 for thread 1 is in sequence #8493
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    cancel
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '+DATADG/orcl/datafile/system.295.686609187'
    ORA-01112: media recovery not started
    The recovery process is looking for */arch/archivelog/1_8493_651861624.dbf* this archivelog, but this archivelog file is not present at that location, the restore process should have restored all the archivelogs as well, actually no archivelogs got restored, how can I recover the database without archivelog logs? it is not possible at all.
    PLEASE tell me how can I make the database work?

    Thanks Hemant !!!
    I restored the archivelogs using the script below
    run {
    allocate channel 'dev_0' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=central,OB2BARLIST=DAILY_HISDBS01_ORACLE-DB_ONLINE_5W,OB2BARHOSTNAME=hisdbs01.kfmc.med)';
    restore ARCHIVELOG FROM TIME 'SYSDATE-5' UNTIL TIME 'SYSDATE';
    release channel 'dev_0';
    then recoverd the database and applied the requested archivelog file and opened the database with resetlogs, it is now successfully recovered upto the point I wanted it to be.

  • Problem when opening the database

    Hi,
    OracleVersin:10.2.0.1
    OperatingSystem:linux
    When i restart my server and trying to start the database it is not starting .And it is throwing the following error.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  838860800 bytes
    Fixed Size                  1222144 bytes
    Variable Size             213912064 bytes
    Database Buffers          616562688 bytes
    Redo Buffers                7163904 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 8 - see DBWR trace file
    ORA-01110: data file 8: '/u06/oradata/QFUNDAPAYPROD_JUN09.dbf'
    SQL> alter database archivelog;
    alter database archivelog
    ERROR at line 1:
    ORA-00265: instance recovery required, cannot set ARCHIVELOG mode
    SQL> shut immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area  838860800 bytes
    Fixed Size                  1222144 bytes
    Variable Size             213912064 bytes
    Database Buffers          616562688 bytes
    Redo Buffers                7163904 bytes
    Database mounted.
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01157: cannot identify/lock data file 8 - see DBWR trace file
    ORA-01110: data file 8: '/u06/oradata/QFUNDAPAYPROD_JUN09.dbf'please help me

    Hi,
    Here is the output of the logfile
    tarting up ORACLE RDBMS Version: 10.2.0.1.0.
    System parameters with non-default values:
      processes                = 300
      __shared_pool_size       = 205520896
      __large_pool_size        = 0
      __java_pool_size         = 4194304
      __streams_pool_size      = 0
      sga_target               = 838860800
      control_files            = /u01/app/oracle/oradata/VSMIG/control01.ctl, /u01/app/oracle/oradata/VSMIG/control02.ctl, /u01/app/oracle/oradata/VSMIG/control03.ctl
      db_block_size            = 8192
      __db_cache_size          = 620756992
      compatible               = 10.2.0.1.0
      db_file_multiblock_read_count= 16
      db_recovery_file_dest    = /u01/app/oracle/flash_recovery_area
      db_recovery_file_dest_size= 2147483648
      undo_management          = AUTO
      undo_tablespace          = UNDOTBS1
      remote_login_passwordfile= EXCLUSIVE
      db_domain                =
      dispatchers              = (PROTOCOL=TCP) (SERVICE=VSMIGXDB)
      job_queue_processes      = 10
      background_dump_dest     = /u01/app/oracle/admin/VSMIG/bdump
      user_dump_dest           = /u01/app/oracle/admin/VSMIG/udump
      core_dump_dest           = /u01/app/oracle/admin/VSMIG/cdump
      audit_file_dest          = /u01/app/oracle/admin/VSMIG/adump
      db_name                  = VSMIG
      open_cursors             = 300
      pga_aggregate_target     = 201326592
    PMON started with pid=2, OS id=3205
    PSP0 started with pid=3, OS id=3207
    MMAN started with pid=4, OS id=3209
    DBW0 started with pid=5, OS id=3212
    LGWR started with pid=6, OS id=3214
    CKPT started with pid=7, OS id=3216
    SMON started with pid=8, OS id=3218
    RECO started with pid=9, OS id=3220
    CJQ0 started with pid=10, OS id=3222
    MMON started with pid=11, OS id=3224
    Wed Nov 11 16:41:56 2009
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    MMNL started with pid=12, OS id=3226
    Wed Nov 11 16:41:56 2009
    starting up 1 shared server(s) ...
    Wed Nov 11 16:41:56 2009
    ALTER DATABASE   MOUNT
    Wed Nov 11 16:42:00 2009
    Setting recovery target incarnation to 3
    Wed Nov 11 16:42:00 2009
    Successful mount of redo thread 1, with mount id 1073552788
    Wed Nov 11 16:42:00 2009
    Database mounted in Exclusive Mode
    Completed: ALTER DATABASE   MOUNT
    Wed Nov 11 16:42:07 2009
    alter database open
    Wed Nov 11 16:42:07 2009
    Errors in file /u01/app/oracle/admin/VSMIG/bdump/vsmig_dbw0_3212.trc:
    ORA-01157: cannot identify/lock data file 8 - see DBWR trace file
    ORA-01110: data file 8: '/u06/oradata/QFUNDAPAYPROD_JUN09.dbf'
    ORA-27086: unable to lock file - already in use
    Linux Error: 11: Resource temporarily unavailable
    Additional information: 8
    Wed Nov 11 16:42:07 2009
    Errors in file /u01/app/oracle/admin/VSMIG/bdump/vsmig_dbw0_3212.trc:
    ORA-01157: cannot identify/lock data file 13 - see DBWR trace file
    ORA-01110: data file 13: '/u06/oradata/APAYPROD_90616.dbf'
    ORA-27086: unable to lock file - already in use
    Linux Error: 11: Resource temporarily unavailable
    Additional information: 8
    ORA-1157 signalled during: alter database open...
    Wed Nov 11 16:57:00 2009
    db_recovery_file_dest_size of 2048 MB is 75.04% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.

  • Problem with Opening the Database

    Dear All,
    I am learning myself Backup And Recovery.
    I messed up with Redo Log files and now the database is not opening.
    What actually I did is
    1) I got 2 redo log groups with I member file in each group.
    Group 1 (redo1) & Group 2(redo 2)
    2) Then I shutdown the database "Shutdown Normal"
    3) Then I removed the one redo log files. (redo 1) "rm redo1"
    4) Now I tried to open the database. It didnot opened as redo 1 is not available
    5) Now I Added one group 3 when the database is in mount mode (alter database add logfile group 3 ...)
    6) Now when I tried to drop the redo log file, I am getting the below error
    ORA-01623 log 1 is current log for instance orcl (thread 1) - cannot drop.
    7) So Now I am not able to open the database
    Can Anyone please help me out.
    Appreciate any help
    Thanks & Regards
    Madhu K

    Madhu,
    Can you try recreating the controlfile ? All it does is resets the redologs (reinitializes them). There wont be any dataloss. You can open the database using "alter database open resetlogs" after you recreate the controlfile.
    Have you looked into the backup and recovery case scenarios. They covered loss of redologs also.
    Since you are learning by yourself, i hope you are following Official Oracle guides. They are your bible when you practice things for the first time.
    http://www.oracle.com/pls/db102/portal.portal_db?selected=4 => Backup and Recovery Section => Backup and Recovery Basics and Backup and Recovery Advanced User's Guide
    -Srinivas

  • Problem in importing the database

    Hi
    my team is new to htmldb..I am doing one module in a stand alone system and my teammate is doing another module in anothe system..I want to import my database into my teammate system..i used sql script for importing...But when I run the script..it gives me the following error...
    unable to import script . Application ID and current security group id are not consistent...
    Can anyone say what is the problem?
    Fazila

    when I run the script(got by uploading from another system),it gives me the following code..
    Numbersort by this column Elapsed Statement Feedback Rows
    1 0.06 begin wwv_flow.g_import_in_progress := true; end; Statement processed. 1
    2 0.08 begin -- Assumes you are running the script connected to Statement processed. 1
    3 0.02 begin wwv_flow.g_import_in_progress := true; end; Statement processed. 1
    4 0.01 begin select value into wwv_flow_api.g_nls_numeric_chars fr Statement processed. 1
    5 0.00 begin execute immediate 'alter session set nls_numeric_chara Statement processed. 1
    6 0.00 begin wwv_flow.g_browser_language := 'en-us'; end; Statement processed. 1
    7 0.00 begin -- This date identifies the minimum version required Statement processed. 1
    8 0.00 begin wwv_flow.g_user := nvl(wwv_flow.g_user,'COMPTOOL'); en Statement processed. 1
    9 0.06 begin wwv_flow_api.g_varchar2_table := wwv_flow_api.empt Statement processed. 1
    10 0.03 declare l_name varchar2(255); begin l_name := 'F ORA-20001: Unable to import script. ORA-20001: Application ID and current security group ID are not consistent. -
    11 0.02 begin wwv_flow_api.g_varchar2_table := wwv_flow_api.empt Statement processed. 1
    12 0.01 declare l_name varchar2(255); begin l_name := 'F ORA-20001: Unable to import script. ORA-20001: Application ID and current security group ID are not consistent. -
    13 0.00 begin execute immediate 'alter session set nls_numeric_char Statement processed. 1
    Can you say what is the problem? what is type imp help=y to run options for import command ...i dont understand...can you explain?
    Fazila

  • Problem in updating the database

    hi i just want to know whether the syntax is correct or not
    psmt=con.prepareStatement("update invoicetransss set description=?,quantity=?,item=?,amount=? where invoiceno=? and sno=?");.pls help me

    What I meant by not being mindreaders is we can't see your code. Does your code contain something similar to the code I posted above? Such as you are catching an exception but doing nothing with it, so you have no idea if your program encountered a problem or not.

  • How to delete the content of a datatable by the "Database Adapter"

    Hello,
    i want to delete all entries in a table by a database adapter - like "DELETE FROM table" in SQL. (Oracle SOA Suite 11g SR1, with Oracle DB over JDBC))
    When i create a new Database adapter i can select standard functions for "insert, select, delete". The function delete does have the disadvantage, that it needs a input message with the key values of the data entry which have to be deleted, which i don't have and don't want to get.
    So i tried the "Pure SQL" mode for the adapter with the SQL string "DELETE FROM table" but this instruction is somehow not commited to the database.
    My questions are:
    - Is there any commit needed for the pure sql instructions? How is the syntax to write several SQL instructions for one Database Adapter?
    - Does anyone have another solution to delete the entries?
    Thanx in advance
    Tobias

    Hi Shishir,
    it is a pretty simple example. I think the problem is that the Database Adapter is not commiting.
    The BPEL is simple sending an empty message to the adapter which should trigger the SQL execution (See Code below)
    The PURE SQL String i'm using is "DELETE FROM table"
    Thanks Tobias
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Wed May 05 09:13:00 CEST 2010
    Author: oracle
    Purpose: Asynchronous BPEL Process
    -->
    <process name="BPELProcess1"
    targetNamespace="http://xmlns.oracle.com/App_DWH_Prototype/TestDELETE/BPELProcess1"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:client="http://xmlns.oracle.com/App_DWH_Prototype/TestDELETE/BPELProcess1"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:xpath20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:ui="http://xmlns.oracle.com/soa/designer/"
    xmlns:task="http://xmlns.oracle.com/bpel/workflow/task"
    xmlns:taskservice="http://xmlns.oracle.com/bpel/workflow/taskService"
    xmlns:wfcommon="http://xmlns.oracle.com/bpel/workflow/common"
    xmlns:wf="http://schemas.oracle.com/bpel/extension/workflow"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/App_DWH_Prototype/TestDELETE/TestDelete%2F"
    xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/top/TestDelete">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="bpelprocess1_client" partnerLinkType="client:BPELProcess1" myRole="BPELProcess1Provider" partnerRole="BPELProcess1Requester"/>
    <partnerLink name="TestDelete" partnerRole="TestDelete_role"
    partnerLinkType="ns1:TestDelete_plt"/>
    </partnerLinks>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:BPELProcess1RequestMessage"/>
    <!-- Reference to the message that will be sent back to the requester during callback -->
    <variable name="outputVariable" messageType="client:BPELProcess1ResponseMessage"/>
    <variable name="Invoke_1_delete_InputVariable"
    messageType="ns1:TActIngredientCollection_msg"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess1.wsdl) -->
    <receive name="receiveInput" partnerLink="bpelprocess1_client" portType="client:BPELProcess1" operation="process" variable="inputVariable" createInstance="yes"/>
    <!--
    Asynchronous callback to the requester. (Note: the callback location and correlation id is transparently handled using WS-addressing.)
    -->
    <assign name="Assign_1">
    <copy>
    <from expression="''"/>
    <to variable="Invoke_1_delete_InputVariable"
    part="TActIngredientCollection"
    query="/ns2:TActIngredientCollection/ns2:TActIngredient/ns2:plotNo"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:process/client:input"/>
    <to variable="outputVariable" part="payload"
    query="/client:processResponse/client:result"/>
    </copy>
    </assign>
    <invoke name="Invoke_1" inputVariable="Invoke_1_delete_InputVariable"
    partnerLink="TestDelete" portType="ns1:TestDelete_ptt"
    operation="delete"/>
    <invoke name="callbackClient" partnerLink="bpelprocess1_client" portType="client:BPELProcess1Callback" operation="processResponse" inputVariable="outputVariable"/>
    </sequence>
    </process>

  • Can't get connected to the database

    Hi There,
    I am a novice to Oracle. I recently installed Oracle 9i Personal Edition in my PC. I also installed 9i Developer suite, however i'm having problem connecting to the database everytime I run for instance, Form developer, report developer or Desginer. I get A Network dial up box. It ask me which network connection I'd like to use. It seems that the applications offered by the 9i Developer attempt to connect into server and in fact I'm runing the database on my pc not from a remote server.
    I appreciate any help regarding this isssue.
    Thank you
    Ayache.

    Step 1 : If you have several Oracle Homes at your PC you have to choose as primary Oracle Home the Oracle Home belonged to the Oracle Server. Do it so:
    SELECT START> PROGRAMS> Oracle Installation Products> Home Selector
    Step 2: tell me how many databases you have created and what are the SIDs of them.
    Joel Pérez

Maybe you are looking for