Executing psadmin.sql for Oracle

I am trying to insatll Peoplesoft using Oracle 10g Release2,Websphere,Tuxedo 9.1, PeopleTools 8.49 and FSCM9.0.
I have successfully installed Oracle 10g, Websphere,Tuxedo,Peopletools and FSCM9.0.
Now, when I am trying to create database from C:\PT8.49\setup\PsMpDbInstall\setup.exe, the Installer after asking the paths get stuck in "Executing psadmin.sql for Oracle" for more than 2 days.
I read in other threads that some people could resolve this by running the scripts manually. If that is the solution can anyone please help me with the scripts in sequence.
Thanks in advance!!!!

Peoplesoft database wizard for Oracle was/is a quite buggy. You should follow the Peopletools Installation Guide for the manual installation tasks instead.
All the steps can be found in the doc :
http://download.oracle.com/docs/cd/E05406_01/psft/acrobat/hwtools849_itora.pdf
If it is not clear, you can have a look to my blog (see my profile), I tried to explain simple as possible the main steps.
Nicolas.

Similar Messages

  • Using a SQL for Oracle in Microsoft Excel Query

    I am having the most difficult time (in fact, I can't get it to work) trying to use an SQL I created in Toad for Oracle. It works fine in Toad for Oracle...gives me all the data I need. I am trying to use it in Excel for users that don't know SQL or Oracle so they can use the query to extract data they need for Charts, Graphs, etc.
    Here is the SQL code from Toad for Oracle:
    /* Formatted on 2006/09/22 11:42 (Formatter Plus v4.8.6) */
    SELECT a_compl_summary.incident_number, a_compl_summary.case_number,
           a_compl_summary.part_sequence, a_compl_summary.part_number,
           a_compl_summary.lot_number, a_compl_summary.alert_date,
           a_compl_summary.entry_date, a_compl_summary.NAME,
           a_compl_summary.MONTH, a_compl_summary.product_family,
           a_compl_summary.complaint, a_compl_summary.reportable,
           a_compl_summary.product_returned, a_compl_summary.case_desc,
           a_compl_summary.failure_invest_desc, a_compl_summary.lhr_search,
           a_compl_summary.root_cause, a_compl_summary.corrective_action,
           a_compl_summary.region,
           rp_qa_reported_device_codes.reported_device_code,
           rp_qa_reported_device_codes.reported_dev_clarification,
           rp_qa_reported_device_codes.reported_dev_code_desc,
           rp_qa_patient_codes.patient_code,
           rp_qa_patient_codes.patient_code_clarif,
           rp_qa_patient_codes.patient_code_severity,
           rp_qa_patient_codes.description
      FROM chsuser.a_compl_summary,
           chsuser.rp_qa_patient_codes,
           chsuser.rp_qa_reported_device_codes
    WHERE (    (a_compl_summary.product_division = 'CP')
            AND (    a_compl_summary.entry_date >= :date1
                 AND a_compl_summary.entry_date <= :date2
            AND (   a_compl_summary.product_family LIKE :pf1
                 OR a_compl_summary.product_family LIKE :pf2
                 OR a_compl_summary.product_family LIKE :pf3
                 OR a_compl_summary.product_family LIKE :pf4
                 OR a_compl_summary.product_family LIKE :pf5
            AND (a_compl_summary.region = :r1)
            AND (   a_compl_summary.NAME = :c1
                 OR a_compl_summary.NAME = :c2
                 OR a_compl_summary.NAME = :c3
                 OR a_compl_summary.NAME = :c4
                 OR a_compl_summary.NAME = :c5
            AND (a_compl_summary.complaint = :yorn)
            AND (   rp_qa_reported_device_codes.reported_dev_clarification LIKE
                                                                              :cl1
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                                                                              :cl2
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                                                                              :cl3
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                                                                              :cl4
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                                                                              :cl5
            AND (rp_qa_reported_device_codes.reported_dev_clarification NOT LIKE
                                                                              :dc1
            AND (a_compl_summary.incident_number =
                                               rp_qa_patient_codes.incident_number
            AND (a_compl_summary.case_number = rp_qa_patient_codes.case_number)
            AND (a_compl_summary.part_sequence = rp_qa_patient_codes.part_sequence
            AND (a_compl_summary.incident_number =
                                       rp_qa_reported_device_codes.incident_number
            AND (a_compl_summary.case_number =
                                           rp_qa_reported_device_codes.case_number
            AND (a_compl_summary.part_sequence =
                                         rp_qa_reported_device_codes.part_sequence
            AND (rp_qa_reported_device_codes.incident_number =
                                               rp_qa_patient_codes.incident_number
            AND (rp_qa_reported_device_codes.case_number =
                                                   rp_qa_patient_codes.case_number
            AND (rp_qa_reported_device_codes.part_sequence =
                                                 rp_qa_patient_codes.part_sequence
           )Can someone help me...maybe point out what I'm doing wrong.
    Note: I also tried creating this query in Microsoft Query (the simple way) and when I first create it...it works...But then if I go back in to edit the query, and refresh the query or try to Return data to Excel, it gives me a ORA-00936 error message.
    Why it works when I first create the query in Excel, I don't know. But I have to validate the queries I'm creating (SQL or not) and I can't validate it if every time I go into edit the query (which may have to happen; that's why I have to fix this before I can submit my validation).
    Anyway, any help would be greatly appreciated.

    Okay, I know I'm replying to my own threads here...but I want to add a little bit more information again.
    I was successful in figuring out that changing the :criteria to a ? worked.
    I tested this on 1 criteria at a time. Adding one more scenario ? at at time.
    It only worked up until about 3 scenarios of each criteria.
    Then when I refreshed the query in Microsoft Excel Query, I got an "out of memory" error, and then it ended up just erasing the SQL I had been using.
    Here's the SQL I had where it gave me this error. Am I possibly just making Excel work too hard? It just doesn't make sense because Toad for Oracle handled it in like 4 seconds. Which brings me back to an intial question I had. Can Excel use Toad for Oracle somehow?
    Here's the code:
    SELECT a_compl_summary.incident_number, a_compl_summary.case_number,
           a_compl_summary.part_sequence, a_compl_summary.part_number,
           a_compl_summary.lot_number, a_compl_summary.alert_date,
           a_compl_summary.entry_date, a_compl_summary.NAME,
           a_compl_summary.MONTH, a_compl_summary.product_family,
           a_compl_summary.complaint, a_compl_summary.reportable,
           a_compl_summary.product_returned, a_compl_summary.case_desc,
           a_compl_summary.failure_invest_desc, a_compl_summary.lhr_search,
           a_compl_summary.root_cause, a_compl_summary.corrective_action,
           a_compl_summary.region,
           rp_qa_reported_device_codes.reported_device_code,
           rp_qa_reported_device_codes.reported_dev_clarification,
           rp_qa_reported_device_codes.reported_dev_code_desc,
           rp_qa_patient_codes.patient_code,
           rp_qa_patient_codes.patient_code_clarif,
           rp_qa_patient_codes.patient_code_severity,
           rp_qa_patient_codes.description
      FROM chsuser.a_compl_summary,
           chsuser.rp_qa_patient_codes,
           chsuser.rp_qa_reported_device_codes
    WHERE (    (a_compl_summary.incident_number =
                                               rp_qa_patient_codes.incident_number
            AND (a_compl_summary.case_number = rp_qa_patient_codes.case_number)
            AND (a_compl_summary.part_sequence = rp_qa_patient_codes.part_sequence
            AND (a_compl_summary.incident_number =
                                       rp_qa_reported_device_codes.incident_number
            AND (a_compl_summary.case_number =
                                           rp_qa_reported_device_codes.case_number
            AND (a_compl_summary.part_sequence =
                                         rp_qa_reported_device_codes.part_sequence
            AND (rp_qa_reported_device_codes.incident_number =
                                               rp_qa_patient_codes.incident_number
            AND (rp_qa_reported_device_codes.case_number =
                                                   rp_qa_patient_codes.case_number
            AND (rp_qa_reported_device_codes.part_sequence =
                                                 rp_qa_patient_codes.part_sequence
    AND (a_compl_summary.product_division = 'CP')
            AND (    a_compl_summary.entry_date >= ?
                 AND a_compl_summary.entry_date <= ?
            AND (   a_compl_summary.product_family LIKE ?
                 OR a_compl_summary.product_family LIKE ?
                 OR a_compl_summary.product_family LIKE ?
                 OR a_compl_summary.product_family LIKE ?
                 OR a_compl_summary.product_family LIKE ?
            AND (a_compl_summary.region = ?)
            AND (   a_compl_summary.NAME = ?
                 OR a_compl_summary.NAME = ?
                 OR a_compl_summary.NAME = ?
                 OR a_compl_summary.NAME = ?
                 OR a_compl_summary.NAME = ?
            AND (a_compl_summary.complaint = ?)
            AND (   rp_qa_reported_device_codes.reported_dev_clarification LIKE
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
                 OR rp_qa_reported_device_codes.reported_dev_clarification LIKE
            AND (rp_qa_reported_device_codes.reported_dev_clarification NOT LIKE
               ))

  • SQL for oracle Reports

    Hi, I am having trouble developing an oracle report to return information from several tables. The information to be returned is an aggregate operator "Count" and several fields from the tables. I cannot get the sql to compile without error.
    Does anyone know of a good website for oracle reports design with sql?

    Hi,
    Why not paste the SQL code along with the
    error or send it to : [email protected]
    Naresh
    null

  • How to implement optemistic locking in pl/sql for oracle database

    i have search the net to find example of how i can do the optimistic locking in pl/sql, all the resources i found were old , for example "Optimistic Locking with Concurrence in Oracle.
    As " by Graham Thornton Snr. Database Architect / Oracle DBA in 2001, but at the end he said that the approach will not work fine if the update being made is a relative update, this apprach includes:-
    1.add a timestamp column to an exsiting table.
    2.add a preinsert trigger on the table to set the timestamp.
    3.add a preupdate trigger to comapre the old time stamp with the new one.
    So where i can find updated resources about this issue.
    Edited by: 812643 on 17-Nov-2010 12:39

    totally plagiarized from expert oracle database architecture 9i, 10g, 11g by Tom Kyte pg201
    one popular implementation of optimistic locking is to keep the old and new values in the application and upon updating the data use and update like this
    update table
    set column1 =: new_column1, column2 = : new_column2, ...
    where primary_key = :primary_key
    and decode( column1, :old_column1, 1 ) = 1
    and decode( column2, :old_column2, 1 ) = 1
    another implementation
    optimistic locking using a version column
    add a single column to each database table you wish to protect from lost updates. this column is generally either a number or date/timestamp column
    It is typically maintened via a row trigger on the table, which is responsible for incrementing the number column or updating the date/timestamp column
    every time a row is modified.
    another one on page 204
    optimistic locking usin a checksum
    similiar to the version column implementation but it uses the base data itself to compute a virtual version column.
    the ones suggested where owa_opt_lock.checksum, dbms_obfuscation_toolkit.md5, dbms_crypto.hash, ora_hashEdited by: pollywog on Nov 17, 2010 3:48 PM
    might be a good book for you to look into getting it has a whole chapter on locking and latching.
    Edited by: pollywog on Nov 17, 2010 3:54 PM

  • Error handling in Native SQL for ORACLE

    Hi,
    I have the next code:
    DATA instr TYPE char4.
    EXEC SQL.
        SELECT INSTRUMENTO INTO instr FROM DATOSMAESTROS
    END EXEC.
    And I want to control if the select has no results. Is it possible with the statement EXCEPTION inside EXEC SQL? Something like that:
    DATA instr TYPE char4.
    EXEC SQL.
        SELECT INSTRUMENTO INTO instr FROM DATOSMAESTROS WHERE id_inst = '01'
        EXCEPTION
             WHEN NO_DATA_FOUND THEN
                      :err = SQLCODE
                      INSERT INTO error( field, code_err) VALUES ( 'instrumento',:err)
    END EXEC.
    Is this a correct code? If not, how can I do it?
    Thank you all,
    Cris.

    Hello,
    Take a look on this: http://help.sap.com/saphelp_nw04s/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/frameset.htm
    Try this:
    DATA instr TYPE char4.
    EXEC SQL.
    SELECT INSTRUMENTO INTO :instr FROM DATOSMAESTROS
    ENDEXEC.
    Look that I put : inside the native SQL before the intr.
    To catch if no data was recovered try this:
    DATA instr TYPE char4.
    EXEC SQL PERFORMING no_data.
    SELECT INSTRUMENTO INTO :instr FROM DATOSMAESTROS
    ENDEXEC.
    FORM no_data.
      IF instr IS INITIAL.
        MESSAGE ...
      ENDIF.
    ENDFORM.
    Regards.

  • PL/SQL New Features for Oracle 10g

    Hi,
    If anybody asks what are the new features in PL/SQL for Oracle 10g version, what would be the answer?
    Thanks,
    Mrinmoy

    user3001930 wrote:
    Hi,
    If anybody asks what are the new features in PL/SQL for Oracle 10g version, what would be the answer?
    Thanks,
    MrinmoyI would say: Who cares about 10g features nowadays. And they I would tell them about the new 11g features (that I remember).

  • Need help for learning how to develop interfaces for Oracle R12 EBS

    Hi all,
    I need to learn how to create interfaces in PL/SQL for Oracle R12 EBS Financials. I cannot find a good starting point for the documentation and examples to help me get started in this area. Would appreciate tips
    for this area.

    Hi,
    What kind of interfaces you are planning to develop?
    Oracle already provides list of APIs that can be used (in R12, it is responsibility).
    Oracle Integration Repository Documentation Resources Release 12 [ID 396116.1]
    Oracle Integration Repository
    http://irep.oracle.com/index.html
    If those APIs do not satisfy your requirements, you can refer to "Oracle Applications Developer" guide as well as SQL-PL/SQL guides.
    Applications Releases 11i and 12
    http://www.oracle.com/technetwork/documentation/applications-167706.html
    Database Documentation -- SQL-PL/SQL
    http://www.oracle.com/technetwork/database/enterprise-edition/documentation/index.html
    Thanks,
    Hussein

  • Looking For Free Good Tutorial To Learn SQL For 8i

    Hello all,
    I am looking for a free good tutorial to learn SQL for Oracle 8i.
    If anyone got any links or resources, kindly suggest.
    Thanks in advance.

    I am looking for a free good tutorial to learn SQL for Oracle 8i.8i has been unsupported for years. If you're just starting out, you might as well learn the latest.

  • Can SQL Developer be used for Oracle Support "HTML Output" Diag Scripts ?

    Hi All,
    Oracle Support has asked me to run a diagnostic script (OTL_Diag.sql for anyone familar with the script) that produces output in HTML format using SQL*Plus to help troubleshoot an OTL problem we are having. Unfortunately I don't have SQL*Plus installed and my company is not on board with me installing it because of the SQL*NET connection required. Instead I have access to SQL Developer 3.1.0.7. While this works fine for most situations I'm having problems generating the required .html output file that Support needs.
    I've tried runing the OTL_Diag.sql a couple of ways using SQL Developer. First, I opened the file from SQL Developer and using the Run Script functionality (F5) I executed the code that way. This method did give me an opportunity to input the necessary parms and it did create the 'start' of the HTML file on my (Windows) file system, but the script seemed to abort with a java error that indicated some sort of format error (sorry, I'm not a java person so I can't provide any more info, but I'll be glad to get the exact error message if anyone thinks that will help solve my issue).
    My second approach was to open a SQL Window where I typed in @C:\OTL_Diag.sql without quotes. This approach also gave me the opportunity to enter the necessary input parms and it seemed to end normally. It also created the 'start' of the diaganostic output file on my Windows file system, but it 'completed' before any of the 'real' diaganostic output was written to the .html file.
    The Metalink note clearly specifies that the OTL_Diag.sql script is to be run with SQL*Plus 10.2 or above so I don't think I can complain too loudly to Oracle about this...but given that I don't have access to this product (and it is useless for me to again ask to install it) I am hoping someone out there has some ideas or insight as to how I can use SQL Developer to execute this diag script in a manner that will produce the required .html output file.
    Thanks in advance to anyone taking time to read my post !!
    Jeff
    Edited by: user13111861 on Jul 10, 2012 6:43 PM
    Edited by: user13111861 on Jul 10, 2012 7:51 PM

    >
    As a result, at this point in time my only available tool to run the OTL_Diag.sql script (provided by Oracle Support) is SQL Developer
    >
    Then you will have to edit the script, break it into pieces, execute each piece manually and save the output to feed into the next piece as required based on what the script is actually doing. Don't post the script or contents as that will likely violate your support agreement.
    As I already mentioned the script may be using syntax and/or commands that are simply not supported by sql*developer. One likely area is the script may be producing intermediate output scripts that are then processed by a later portion of the script. If that is the case then my suggestion to execute the pieces manually should work but you will need to do some trial-and-error to see.
    Even if you appear to be successful you will still have an issue when you communicate the results of your 'test' to Oracle support and they determine you didn't follow their instructions to use the proper tool.
    Sounds like your management is either ignorant or incompetent so I suggest you cover yourself by documentating the instructions from Oracle support and the direct orders you were given to disregard those instructions. No need to discuss that issue further but clearly there are resources available somewhere in the org that has the proper privileges or they wouldn't be able to maintain and support the database. If they want to pay for support they should heed their advice. Nuff said.

  • Oracle Streams ORA-23616: Failure in executing block 167 for script

    oracle : Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    os : linux i686 i686 i386 GNU/Linux
    application : testing streams for schema ROOT
    1. Both the databases INDCTRAK, INDDTRAK are in archive.
    2. DB link created
    CREATE DATABASE LINK dbl_INDDTRAK CONNECT TO strmadmin IDENTIFIED BY strmadmin USING 'INDDTRAK';
    3. tbs created
    CREATE TABLESPACE streams_tbs datafile '/u02/oradata/INDDTRAK/streams01.dbf' size 100m;
    4 user created
    CREATE USER strmadmin IDENTIFIED BY strmadmin DEFAULT TABLESPACE streams_tbs TEMPORARY TABLESPACE temp
    QUOTA UNLIMITED ON streams_tbs;
    5. All req. grants
    GRANT CONNECT, RESOURCE, DBA ,Select_CATALOG_ROLE,
    SELECT ANY DICTIONARY TO strmadmin;
    6. grants
    BEGIN
    DBMS_STREAMS_AUTH.GRANT_ADMIN_PRIVILEGE (Grantee => 'strmadmin',Grant_privileges => true);
    END;
    PL/SQL procedure successfully completed.
    7. Created directory
    CREATE OR REPLACE DIRECTORY ADMIN AS '/u02/oradata/INDDTRAK/streams';
    step 2-7 executed without errors
    8.run with perform_actions as false
    SQL> BEGIN
    2 DBMS_STREAMS_ADM.MAINTAIN_SCHEMAS(
    3 schema_names =>'ROOT',
    4 source_directory_object =>'ADMIN',
    5 destination_directory_object =>'ADMIN',
    6 source_database => 'INDCTRAK',
    7 destination_database => 'INDDTRAK',
    8 perform_actions => false,
    9 script_name => 'schema_replication.sql',
    10 script_directory_object => 'admin',
    11 dump_file_name => 'ROOT.DMP',
    12 capture_name => 'capture_ROOT',
    13 capture_queue_table => 'rep_capture_queue_table',
    14 capture_queue_name => 'rep_capture_queue',
    15 capture_queue_user => null,
    16 propagation_name => 'prop_ROOT',
    17 apply_name => 'apply_ROOT',
    18 apply_queue_table => 'rep_dest_queue_table',
    19 apply_queue_name => 'rep_dest_queue',
    20 apply_queue_user => null,
    21 log_file => 'exp.log',
    22 bi_directional => false,
    23 include_ddl => true,
    24 instantiation => dbms_streams_adm.instantiation_schema_network);
    25 END;
    26 /
    9. when running perform_actions true getting error
    SQL> BEGIN
    2 DBMS_STREAMS_ADM.MAINTAIN_SCHEMAS(
    3 schema_names =>'ROOT',
    4 source_directory_object =>'ADMIN',
    5 destination_directory_object =>'ADMIN',
    6 source_database => 'INDCTRAK',
    7 destination_database => 'INDDTRAK',
    8 perform_actions => TRUE,
    9 script_name => 'schema_replication.sql',
    10 script_directory_object => 'admin',
    11 dump_file_name => 'ROOT.DMP',
    12 capture_name => 'capture_ROOT',
    13 capture_queue_table => 'rep_capture_queue_table',
    14 capture_queue_name => 'rep_capture_queue',
    15 capture_queue_user => null,
    16 propagation_name => 'prop_ROOT',
    17 apply_name => 'apply_ROOT',
    18 apply_queue_table => 'rep_dest_queue_table',
    19 apply_queue_name => 'rep_dest_queue',
    20 apply_queue_user => null,
    21 log_file => 'exp.log',
    22 bi_directional => false,
    23 include_ddl => true,
    24 instantiation => dbms_streams_adm.instantiation_schema_network);
    25 END;
    26 /
    BEGIN
    ERROR at line 1:
    ORA-23616: Failure in executing block 167 for script
    4D2E52386C84C1CAE040A8C0FC015222
    ORA-06512: at "SYS.DBMS_RECOVERABLE_SCRIPT", line 560
    ORA-06512: at "SYS.DBMS_RECOVERABLE_SCRIPT", line 583
    ORA-06512: at "SYS.DBMS_STREAMS_MT", line 7673
    ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 2606
    ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 2667
    ORA-06512: at line 2
    10 errors
    SQL> select * from dba_recoverable_script_errors;
    SCRIPT_ID BLOCK_NUM ERROR_NUMBER
    ERROR_MESSAGE
    ERROR_CRE
    4D2E52386C84C1CAE040A8C0FC015222 167 -39001
    ORA-39001: invalid argument value
    ORA-06512: at "SYS.DBMS_RECO_SCRIPT_INVOK", line 130
    ORA-06512: at "SYS.DBMS_STREAMS_RPC", line 447
    14-MAY-08
    I could not find much explanation on net.
    pl. help in case it is already solved.

    Hi,
    we are implementing datavault on an existing 11g DB.The database is up and running fine , but DBCA shows this error when I am trying to configure datavault using DBCA.
    I have created a spfile from the same pfile, and Db does not show any error while coming up or shutting down. The issue comes only while using DBCA. I shall try minimizing the parameters and try again.
    Thanks
    Pankaj

  • Oracle SQL template to create re-usable DDL/DML Scripts for Oracle database

    Hi,
    I have a requirement to put together a Oracle SQL template to create re-usable DDL/DML Scripts for Oracle databases.
    Only the Oracle DBA will be running the scripts so permissions is not an issue.
    The workflow for any DDL is as follows:-
    1) New Table
    a. Check if the table exists from the system/admin views.
    b. If table exists then give message "Table Exists"
    c. If table does not exist then execute DDL code
    2) Add Column
    a. Check if Column exists for a given table from system/admin views
    b. If column exists in the specified table,
    b1. backup table.
    b2. alter table to make changes to the column
    b3. verify data or execute dml script convert from backup to the new change.
    c. If Column does not exist
    c1. backup table
    c2. alter table to add column
    c3. execute dml to populate column with default value.
    The DML scripts are for populating base tables with data required for business operations.
    3) Add new row
    a. check if row exists by comparing old values of each column with new values to be added for the new record.
    b. If exists, give message row exists
    c. If not exists, add new record.
    4) Update existing record (We have createtime columns in these tables so changes can be tracked)
    a. check if row exists using primary key.
    b. If exists,
    b1. deactivate the record using the "active" column of the table
    b2. Add new record with the changes required.
    c. If does not exist, add new record with the changes required.
    Could you please help with some ideas which can get this done accurately?
    I have tried several ways, but I am not able to put together something that fulfills all requirements.
    Thank you,

    First let me address your question. (This is the easy part.)
    1. The existence of tables can be found in DBA_TABLES. Query it and and then use conditional logic and execute immediate to process the DDL.
    2. The existence of table columns is found in DBA_TAB_COLUMNS. Query it and then conditionally execute your DDL. You can copy the "before picture" of the table using that same dba view, or even better, use DBMS_METADATA.
    As for your DML scripts, they should be restartable, reversible, and re-run-able. They should "fail gracefully" on error, be written in such a way that they can run twice in a row without creating duplicate changes.
    3. Adding appropriate constraints can prevent invalid duplicate rows. Also, you can usually add to the where clause so that the DML does only what it needs to do without even relying on the constraint (but the constraint is there as a safeguard). Look up the MERGE statement to learn how to do an UPSERT (update/insert), which will let you conditionally "deactivate" (update) or insert a record. Anything that you cannot do in SQL can be done with simple procedural code.
    Now, to the heart of the matter...
    You think I did not understand your requirements?
    Please be respectful of people's comments. Many of us are professionals with decades of experience working with databases and Oracle technology. We volunteer our valuable time and knowledge here for free. It is extremely common for someone to post what they feel is an easy SQL or PL/SQL question without stating the real goal--the business objective. Experienced people will spot that the "wrong question" has been asked, and then cut to the chase.
    We have some good questions for you. Not questions we need answers from, but questions you need to ask yourself and your team. You need to reexamine this post and deduce what those questions are. But I'll give you some hints: Why do you need to do what you are asking? And will this construct you are asking for even solve the root cause of your problems?
    Then ponder the following quotations about asking the right question:
    Good questions outrank easy answers.
    — Paul Samuelson
    The only interesting answers are those which destroy the questions.
    — Susan Sontag
    The scientific mind does not so much provide the right answers as ask the right questions.
    — Claude Levi-Strauss
    You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions.
    — Mahfouz Naguib
    One hears only those questions for which one is able to find answers.
    — Friedrich Nietzsche
    Be patient towards all that is unresolved in your heart and try to love the questions themselves.
    — Rainer Maria Rilke
    What people think of as the moment of discovery is really the discovery of the question.
    — Jonas Salk
    Judge a man by his questions rather than his answers.
    — Voltaire
    The ability to ask the right question is more than half the battle of finding the answer.
    — Thomas J. Watson

  • How execute pl/sql command from Oracle ADF Business Components

    can't find examples for how execute pl/sql command from Oracle ADF Business Components and how call pl/sql package procedure from ADF Business Components.
    insert,update,delete rows in view object instance cache is good but if i must do some complex operations while insert,update,delete rows..it's more better for me to call
    pl/sql procedure from oracle db.Am i wrong ????

    Roman,
    this should be similar to how it worked in JDeveloper 9.0.3. hava a look at <JDev903 Home>\BC4J\samples\StoredProc for a code example.
    Frank

  • RE: Additional scripts to execute after creation of database for Oracle

    Hi it is possilble to execute additional scripts such as CATALOG.SQL; CATAUDIT.SQL etc to enable v$session views? as these views are not created when i used the wizard in Oracle to create the database in 9i.
    Is this normal or am i not creating the database correctly?
    Also does this steps of running additional scripts required for Oracle 10 or 11?
    Thanks for any info

    Hi,
    after creating the database, run the following scripts
    sql>@$ORACLE_HOME/rdbms/admin/catalog.sql;
    sql>@$ORACLE_HOME/rdbms/admin/catproc.sql;
    connect SYSTEM/&&systemPassword
    sql>@$ORACLE_HOME/rdbms/admin/pupbld.sql;
    regards,
    Xaheer

  • Execute all SQL code as individual Oracle user, not APEX_PUBLIC_USER

    Is it possible to get APEX to execute SQL code as the user's existing Oracle database user instead of APEX_PUBLIC_USER?
    Besides having all of the security already defined for each of the existing users at the database level, the existing application also handles generating audit trails with triggers that pull the username executing the SQL instead of accepting passed values. At the moment APEX_PUBLIC_USER is plastered everywhere as the user that generated the changes.

    rcy_evdriver wrote:
    Is it possible to get APEX to execute SQL code as the user's existing Oracle database user instead of APEX_PUBLIC_USER? No. See:
    {message:id=926724}
    {message:id=1224601}
    {message:id=1606515}
    Application Express and parsing of SQL
    Besides having all of the security already defined for each of the existing users at the database level, the existing application also handles generating audit trails with triggers that pull the username executing the SQL instead of accepting passed values. At the moment APEX_PUBLIC_USER is plastered everywhere as the user that generated the changes.Using DAD Credentials Verification will cause the database user to be returned by the <tt>USER</tt> pseudo-column. (However just because you can do this, it doesn't mean you should.)
    {message:id=9680421}
    Why are you asking this? +"At the moment APEX_PUBLIC_USER is plastered everywhere as the user that generated the changes"+ indicates that it might be a bit late to be making fundamental discoveries about APEX and database security?

  • SQLException:java.sql.SQLException:[Microsoft][Odbc driver for Oracle]

    hi all..im tryin to connect to Oracle db from java application.. i can complile the code but when it comes to executing d cod im gettin d followin error.. pls help me out.. here is d error
    SQLException:java.sql.SQLException:[Microsoft][Odbc driver for Oracle][Oracle]

    henrymania wrote:
    This is d driver im loadin..
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    and this is URL im assiging....
    "jdbc:oracle:thin:@192.168.32.68:1521:test";
    Here test is my sid name....highly unlikely, as that's not an ODBC driver nor is it an ODBC DSN.

Maybe you are looking for

  • Family sharing setup

    Hello! I am trying to set up family sharing option on my iMac, running on iOS Yosemite. After being prompted for password and entering it, the password window keeps appearing over and over again. There is no error message nor is my password incorrect

  • Export a schema

    Hello i got the below error , when i try to export the schema from Database 11g using exp utility 10g . its successfuly exported if i export it using exp utility 11g , but i need it using exp utility 10g so i can import it to oracle db 10g . Export:

  • Wacom Tablet Not Recognized with 10.5.2

    Hi, I've recently upgraded to a 2.4 intel core 2 duo iMac and plugged in my Wacom Intuos Graphics Tablet (GD). I've installed, uninstalled, reinstalled, booted, rebooted in every combination possible, tablet plugged into different ports during boot,

  • Jdev 10g Preview Database Connection Error

    HI, I'm trying to create a database connection in Jdev 10.1.3.0.2 . When i press "Test Connection" i receive the following error. ORA-00604: error occurred at recursive SQL level 1 ORA-12705: invalid or unknown NLS parameter value specified I used pr

  • Close IE from within? Shockwave or exe?

    I have a web page running a shockwave movie. Is it possible for the shockwave movie to force IE to close.. It is running in Kiosk mode (IE that is).. So for example I want to place a button that the user presses to close IE and therefore exit the kio