error in the IF statement - create user

SET SERVEROUTPUT ON

DECLARE
NUM INTEGER;
BEGIN
NUM = 1;

IF (NUM = 1) THEN

CREATE USER IDENTIFIED BY BOB BOB;

END IF;
END;

I encounter the following error
SQL > @T1
CREATE USER IDENTIFIED BY BOB BOB;
*
ERROR on line 11:
ORA-06550: line 11, column 3:
PLS-00103: encountered the symbol "CREATE" when waiting in the following way:
begin case declare exit for goto if loop mod null pragma
raise return select update while < ID >
< between double quote delimited identifiers of > < a variable binding > < <
Close current delete fetch locking insert open rollback
SAVEPOINT SQLExecute set pipe fusion commit forall

What should I do? I'm on sql, oracle 10g, cmd in windows 7.

sweetiePie says:

What should I do? I'm on sql, oracle 10g, cmd in windows 7.

DDL is not available in PL/SQL. You do not normally run DDL in PL/SQL, but if it is justified, use you dynamic SQL:

SET SERVEROUTPUT ON

DECLARE
NUM INTEGER;
BEGIN
NUM = 1;

IF NUM = 1 THEN
EXECUTE IMMEDIATE 'CREATE USER BOB IDENTIFIED BY BOB';
END IF;
END;
/

SY.

Tags: Database

Similar Questions

  • I try to copy a CD but get an error in the column State of Rip. Has not changed any option, as I just ripped a CD yesterday. HELP PLEASE!

    I have NEED of HELP PLEASE I am trying to copy a CD but get an error in the column State of Rip. Has not changed any option, as I just ripped a CD yesterday.  HELP PLEASE!

    Hello

    1. What is the exact error message?

    2. is the issue specific to this particular CD/DVD?

    3 did you changes to the computer, before the show?

    Method 1:

    Run the Windows Media Player settings troubleshooter.

    Open the troubleshooting Windows Media Player settings Troubleshooter

    Method 2:

    Change the settings for the extraction of music and the audit.

    Change settings for ripping

  • can u guide me through the steps of creating user

    can u guide me through the steps of creating user

    Hello

    For users to create and give certain permissions to them, please follow the steps mentioned below:

    1 > connect to Administration and open the RPD in online mode.
    2 > click on manage---> security
    3 > it will show a window which displays users, groups, etc.
    4 > select user.
    5 > on the side right window right click and select new user.
    6 > a window will appear where you must type the user name, the description, and the password, and then click ok
    7 > your user name is created. Now save the RPD.
    8 > connection to presentation Services with the user you just created. This will create the user in your presentation.
    9 > now logg off and connect with the administrator user.
    10 > now go into the settings---> Administration---> interactive dashboards to manage and give the permissions you want.

  • Error in the SQL statement when executing ETL of DAC

    Hi all

    I have installed and configured the 7.9.6.3 biapps, then I run the full load of the CRM - loyalty in DAC topic. And I got the error task failed, I check the Session to the Informatica server log files.

    view of $ SEBL_VERT_811.DATAWAREHOUSE. SDE_SBL_Vert_811_Adaptor.SDE_GeographyDimension_Business.log

    DIRECTOR > use VAR_27028 replace value [0] for the variable defined by the workflow/worklet user: [$passInStatus].
    DIRECTOR > VAR_27028 use override the value [DataWarehouse] session parameter: [$DBConnection_OLAP].
    DIRECTOR > VAR_27028 use override the value [SEBL_VERT_811] for the session parameter: [$DBConnection_OLTP].
    DIRECTOR > VAR_27028 use override the value [SEBL_VERT_811.DATAWAREHOUSE. SDE_SBL_Vert_811_Adaptor.SDE_GeographyDimension_Business.log] for the session parameter: [$PMSessionLogFile].
    DIRECTOR > VAR_27028 use override value [1] to parameter mapping: [MPLT_LOAD_W_GEO_DS. [DATASOURCE_NUM_ID$ $].
    DIRECTOR > VAR_27028 use override value for the parameter mapping]: [$$ Hint1].
    DIRECTOR > VAR_27028 use override value for the parameter mapping]: [$$ council2].
    DIRECTOR > session initialization of TM_6014 [SDE_GeographyDimension_Business] to [my Jul 25 17:29:47 2011].
    DIRECTOR > name of the repository TM_6683: [Oracle_BI_DW_Base]
    DIRECTOR > TM_6684 server name: [Oracle_BI_DW_Server]
    DIRECTOR > TM_6686 folder: [SDE_SBL_Vert_811_Adaptor]
    DIRECTOR > Workflow TM_6685: [SDE_GeographyDimension_Business] run the Instance name: Id series []: [260]
    DIRECTOR > mapping TM_6101 name: SDE_GeographyDimension_Business [version 1].
    DIRECTOR > TM_6963 pre 85 Timestamp compatibility is enabled
    DIRECTOR > the TM_6964 Date of the Session format is [HH24:MI:SS DD/MM/YYYY]
    DIRECTOR > TM_6827 [u01/app/oracle/biapps/dev/Informatica/9.0.1/server/infa_shared/Storage] will be used as the storage of session directory [SDE_GeographyDimension_Business].
    DIRECTOR > CMN_1802 Session recovery cache initialization is complete.
    DIRECTOR > configuration using [DisableDB2BulkMode, Yes] TM_6708 property
    DIRECTOR > configuration using TM_6708 [ServerPort, 6325] property
    DIRECTOR > configuration using [overrideMpltVarWithMapVar Yes] TM_6708 property
    DIRECTOR > configuration using TM_6708 [SiebelUnicodeDB,SIEBEL@ANSDEV dwhadmin@ANBDEV] property

    DIRECTOR > TM_6703 Session [SDE_GeographyDimension_Business] is headed by 64-bit integration Service [node01_hkhgc01dvapp01], [version9.0.1 HotFix2], build [1111].
    MANAGER > PETL_24058 Running score of the Group [1].
    MANAGER > initialization of engine PETL_24000 of parallel Pipeline.
    MANAGER > PETL_24001 parallel Pipeline engine running.
    MANAGER > session initialization PETL_24003 running.
    MAPPING > CMN_1569 Server Mode: [UNICODE]
    MAPPING > code page of the server CMN_1570: [Unicode UTF-8 encoding]
    MAPPING > TM_6151 the session to the sort order is [binary].
    MAPPING > TM_6185 warning. Code page validation is disabled in this session.
    MAPPING > treatment of low accuracy using TM_6156.
    MAPPING > retry TM_6180 blocking logic will not apply.
    MAPPING > TM_6187 Session focused on the target validation interval is [10000].
    MAPPING > TM_6307 DTM error log disabled.
    MAPPING > TE_7022 TShmWriter: initialized
    MAPPING > DBG_21075 connection to the database [ANBDEV], [dwhadmin] users
    MAPPING > Search CMN_1716 [MPLT_LOAD_W_GEO_DS. LKP_W_LST_OF_VAL_G] uses the connection to database [relational: DataWarehouse] in [UTF-8 encoding Unicode] code page
    MAPPING > Search CMN_1716 [MPLT_LOAD_W_GEO_DS. LKP_W_GEO_DS] uses the connection to database [relational: DataWarehouse] in [UTF-8 encoding Unicode] code page
    MAPPING > DBG_21694 AGG_COUNTRY_CITY_ZIPCODE [0] Partition: size = [1048576] Index cache, data cache size = [2097152]
    MAPPING > TE_7212 increasing [Cache of Index] size of transformation [AGG_COUNTRY_CITY_ZIPCODE] of [1048576] to [2402304].
    MAPPING > TE_7212 increasing [Cache data] size of transformation [AGG_COUNTRY_CITY_ZIPCODE] of [2097152] to [2097528].
    MAPPING > TE_7029 aggregate information: create the new Index and data files
    MAPPING > TE_7034 aggregate information: Index file is [u01/app/oracle/biapps/dev/Informatica/9.0.1/server/infa_shared/Cache/PMAGG14527_3_0_260.idx]
    MAPPING > information aggregated TE_7035: data file is [u01/app/oracle/biapps/dev/Informatica/9.0.1/server/infa_shared/Cache/PMAGG14527_3_0_260.dat]
    MAPPING > TM_6007 DTM initialized successfully for the session [SDE_GeographyDimension_Business]
    DIRECTOR > PETL_24033 all the DTM connection information: [< NO >].
    MANAGER > PETL_24004 from the tasks before the session. : (My Jul 25 17:29:47 2011)
    MANAGER > task PETL_24027 before the session completed successfully. : (My Jul 25 17:29:47 2011)
    DIRECTOR > PETL_24006 from data movement.
    MAPPING > Total TM_6660 Buffer Pool size is 36000000 bytes and block size is 128000 bytes.
    LKPDP_2 > search for DBG_21097 Transformation [MPLT_LOAD_W_GEO_DS. LKP_W_GEO_DS]: default sql to create the cache of research: SELECT CITY, COUNTRY, POSTAL code, STATE_PROV OF W_GEO_DS of the ORDER BY CITY, COUNTRY, POSTAL code, STATE_PROV

    LKPDP_1 > search for DBG_21312 Transformation [MPLT_LOAD_W_GEO_DS. LKP_W_LST_OF_VAL_G]: search replace sql to create the cache: SELECT W_LST_OF_VAL_G.VAL AS VAL, W_LST_OF_VAL_G.R_TYPE AS R_TYPE FROM W_LST_OF_VAL_G
    WHERE
    W_LST_OF_VAL_G.R_TYPE LIKE '% ETL' ORDER BY R_TYPE, VAL

    LKPDP_1 > TE_7212 increasing [Cache of Index] size of transformation [MPLT_LOAD_W_GEO_DS. LKP_W_LST_OF_VAL_G] of [1048576] to [1050000].
    LKPDP_2 > TE_7212 increasing [Cache of Index] size of transformation [MPLT_LOAD_W_GEO_DS. LKP_W_GEO_DS] of [20000000] to [20006400].
    LKPDP_2 > TE_7212 increasing [Cache data] size of transformation [MPLT_LOAD_W_GEO_DS. LKP_W_GEO_DS] of [20000000] to [20004864].
    READER_1_1_1 > DBG_21438 Reader: Source is [ANSDEV], [SIEBEL] users
    READER_1_1_1 > code page Source of BLKR_16051 database connection [SEBL_VERT_811]: [Unicode UTF-8 encoding]
    READER_1_1_1 > BLKR_16003 initialization completed successfully.
    WRITER_1_ * _1 > WRT_8146 author: target's database [ANBDEV], user [dwhadmin], loose [on] mode
    WRITER_1_ * _1 > WRT_8106 WARNING! Session Mode Bulk - recovery is not guaranteed.
    WRITER_1_ * _1 > code page target database connection [Data Warehouse] WRT_8221: [Unicode UTF-8 encoding]
    WRITER_1_ * _1 > target WRT_8124 W_GEO_DS of Table: SQL INSERT statement:
    INSERT INTO W_GEO_DS(CITY,CONTINENT,COUNTRY,COUNTY,STATE_PROV,ZIPCODE,DATASOURCE_NUM_ID,X_CUSTOM) VALUES (?,?,?,?,?,?,?,?)
    WRITER_1_ * _1 > WRT_8020 No. column that is marked as the primary key for the table [W_GEO_DS]. Updates not supported.
    WRITER_1_ * _1 > connection WRT_8270 #1 target group consists of target (s) [W_GEO_DS]
    WRITER_1_ * _1 > WRT_8003 writer initialization complete.
    READER_1_1_1 > BLKR_16007 player run began.
    WRITER_1_ * _1 > WRT_8005 writer run began.
    WRITER_1_ * _1 > WRT_8158

    START SUPPORT SESSION *.

    Startup load time: my Jul 25 17:29:47 2011

    Target table:

    W_GEO_DS


    READER_1_1_1 > RR_4029 SQ [SQ_S_ADDR_ORG] User Instance specified SQL query [SELECT DISTINCT
    S_ADDR_ORG. CITY,
    S_ADDR_ORG. COUNTRIES,
    S_ADDR_ORG. COUNTY,
    S_ADDR_ORG. PROVINCE,
    S_ADDR_ORG. STATE,
    S_ADDR_ORG. Zip code
    '0' AS X_CUSTOM
    Of
    V_ADDR_ORG, S_ADDR_ORG
    ]
    READER_1_1_1 > RR_4049 SQL query sent to the database: (my Jul 25 17:29:47 2011)
    READER_1_1_1 > CMN_1761 Timestamp event: [lun 25 juil 17:29: 47 2011]
    READER_1_1_1 > RR_4035 SQL Error]
    ORA-00942: table or view does not exist

    Database driver error...
    Function name: run
    Stmt SQL: SELECT DISTINCT
    S_ADDR_ORG. CITY,
    S_ADDR_ORG. COUNTRIES,
    S_ADDR_ORG. COUNTY,
    S_ADDR_ORG. PROVINCE,
    S_ADDR_ORG. STATE,
    S_ADDR_ORG. Zip code
    '0' AS X_CUSTOM
    Of
    V_ADDR_ORG, S_ADDR_ORG

    Fatal error Oracle
    Database driver error...
    Function name: run
    Stmt SQL: SELECT DISTINCT
    S_ADDR_ORG. CITY,
    S_ADDR_ORG. COUNTRIES,
    S_ADDR_ORG. COUNTY,
    S_ADDR_ORG. PROVINCE,
    S_ADDR_ORG. STATE,
    S_ADDR_ORG. Zip code
    '0' AS X_CUSTOM
    Of
    V_ADDR_ORG, S_ADDR_ORG

    [Error fatal Oracle].
    READER_1_1_1 > CMN_1761 Timestamp event: [lun 25 juil 17:29: 47 2011]
    READER_1_1_1 > BLKR_16004 ERROR: prepare failed.
    WRITER_1_ * _1 > WRT_8333 roll back all the targets due to the fatal error of session.
    WRITER_1_ * _1 > rollback WRT_8325 Final, executed for the target [W_GEO_DS] at end of load
    WRITER_1_ * _1 > WRT_8035 of full load time: my Jul 25 17:29:47 2011

    SUMMARY OF THE LOAD
    ============

    WRT_8036 target: W_GEO_DS (Instance name: [W_GEO_DS])
    WRT_8044 responsible for this target data no.



    WRITER_1__1 > WRT_8043 * END LOAD SESSION *.
    MANAGER > PETL_24031
    PERFORMANCE INFORMATION FOR TGT SUPPORT ORDER [1] GROUP, SIMULTANEOUS GAME [1] *.
    Thread [READER_1_1_1] created [stage play] point score [SQ_S_ADDR_ORG] is complete. Running time total was enough for significant statistics.
    [TRANSF_1_1_1] thread created for [the scene of transformation] partition has made to the point [SQ_S_ADDR_ORG]. Running time total was enough for significant statistics.
    [TRANSF_1_2_1] thread created for [the scene of transformation] partition has made to the point [AGG_COUNTRY_CITY_ZIPCODE]. Running time total was enough for significant statistics.
    Thread [WRITER_1_ * _1] created for [the scene of writing] partition has made to the point [W_GEO_DS]. Running time total was enough for significant statistics.

    MAPPING > CMN_1791 size which would take [0] groups total lines of entry for [AGG_COUNTRY_CITY_ZIPCODE], in memory, it is [0] index cache bytes
    MAPPING > CMN_1790 cached data size that would [0] groups total lines of entry for [AGG_COUNTRY_CITY_ZIPCODE], in memory, bytes [0]
    MAPPING > CMN_1793 index cache size which would hold [0] lines in the table to search for [MPLT_LOAD_W_GEO_DS. LKP_W_LST_OF_VAL_G], in memory, is bytes [0]
    MAPPING > CMN_1792 cached data size that would [0] lines in the table to search for [MPLT_LOAD_W_GEO_DS. LKP_W_LST_OF_VAL_G], in memory, is bytes [0]
    MAPPING > CMN_1793 index cache size which would hold [0] lines in the table to search for [MPLT_LOAD_W_GEO_DS. LKP_W_GEO_DS], in memory, is bytes [0]
    MAPPING > CMN_1792 cached data size that would [0] lines in the table to search for [MPLT_LOAD_W_GEO_DS. LKP_W_GEO_DS], in memory, is bytes [0]
    MANAGER > PETL_24005 from tasks after the session. : (My Jul 25 17:29:47 2011)
    MANAGER > task of PETL_24029 after the session completed successfully. : (My Jul 25 17:29:47 2011)
    MAPPING > cache TE_7216 deleting files [PMLKUP14527_524289_0_260L64] for processing [MPLT_LOAD_W_GEO_DS. LKP_W_LST_OF_VAL_G].
    MAPPING > cache TE_7216 deleting files [PMLKUP14527_524293_0_260L64] for processing [MPLT_LOAD_W_GEO_DS. LKP_W_GEO_DS].
    MAPPING > TM_6018 the session completed with errors of processing row [0].
    MANAGER > TE_7216 deleting files cache [u01/app/oracle/biapps/dev/Informatica/9.0.1/server/infa_shared/Cache/PMAGG14527_3_0_260.idx] for [AGG_COUNTRY_CITY_ZIPCODE] transformation.
    MANAGER > TE_7216 deleting files cache [u01/app/oracle/biapps/dev/Informatica/9.0.1/server/infa_shared/Cache/PMAGG14527_3_0_260.dat] for [AGG_COUNTRY_CITY_ZIPCODE] transformation.
    MANAGER > parallel PETL_24002 engine Pipeline completed.
    DIRECTOR > Session PETL_24013 run duly filled with failure.
    DIRECTOR > TM_6022

    PLENARY OF THE LOAD
    ================================================

    DIRECTOR > TM_6252 Source load summary.
    DIRECTOR > Table CMN_1740: [SQ_S_ADDR_ORG] (name of the Instance: [SQ_S_ADDR_ORG])
    Output [0] lines, affected lines [0], applied [0] lines, rejected lines [0]
    DIRECTOR > TM_6253 Target Load summary.
    DIRECTOR > Table CMN_1740: [W_GEO_DS] (name of the Instance: [W_GEO_DS])
    Output [0] lines, affected lines [0], applied [0] lines, rejected lines [0]
    DIRECTOR > TM_6023
    ===================================================

    DIRECTOR > TM_6020 Session [SDE_GeographyDimension_Business] to [my Jul 25 17:29:48 2011].


    After reviewing the log, I found the select statement fails, the SQL below was wrong:

    SELECT DISTINCT
    S_ADDR_ORG. CITY,
    S_ADDR_ORG. COUNTRIES,
    S_ADDR_ORG. COUNTY,
    S_ADDR_ORG. PROVINCE,
    S_ADDR_ORG. STATE,
    S_ADDR_ORG. Zip code
    '0' AS X_CUSTOM
    Of
    V_ADDR_ORG, S_ADDR_ORG

    There is no V_ADDR_ORG but the table S_ADDR_ORG in the transaction of Siebel database. So I don't know why he build this sql when data transfer to OBAW. It is the fate of bi box app.

    Experts! How could I solve this problem? Please help, thanks a lot!


    Best regards
    Ryan

    Ryan,

    Yes, you missed to create views for the source tables. both in the design of dac > tables tab, select any table and clieck right on it and then click capture of change scripts > generate scripts from view. It will ask you if it can generate a script for all tables. so it will generate the script from view for you. now run the whole esript in the source database. then your problem will be solved.

    If this answers your question. do my correct answer.

    Thank you
    Jay.

  • Get error in the merge statement

    Version of Oracle, Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    Hi gurus

    I am trying to perform the merge statement using the clause, but I get the error message, see below my sample data:

    Examples of data

    DROP TABLE OF BILLING;

    DROP TABLE GROUP_MST;

    DROP TABLE age_max;

    CREATE ARRAY OF BILLING

    (

    BILLING_ID NUMBER (5),

    RATE NUMBER (5),

    MAXIMUM_AGE NUMBER (5),

    package_id NUMBER (5)

    );

    INSERT

    IN BILLING

    (SELECT 11,1,10,100 FROM DUAL

    UNION ALL

    SELECT 12,2,15,100 FROM DUAL

    UNION ALL

    SELECT 13,3,20,100 FROM DUAL

    );

    CREATE TABLE GROUP_MST

    (group_number NUMBER (5), package_id NUMBER (5))

    );

    INSERT INTO GROUP_MST

    (SELECT DOUBLE 5 000 100

    );

    -------

    CREATE TABLE AGE_MAX

    (group_number NUMBER (5), max_age NUMBER (5))

    );

    INSERT

    IN AGE_MAX

    (SELECT 5000,60 FROM DUAL

    );

    Merge statement

    MERGE INTO DRC USING billing

    (WITH datum1 AS

    (SELECT A.group_number,

    b.billing_id,

    b.rate,

    b.maximum_age,

    b.package_id

    OF group_mst A,.

    b billing

    WHERE A.package_id = b.package_id

    ),

    datum2 AS

    (SELECT max_age, group_number FROM age_max

    )

    SELECT * FROM A, b WHERE A.group_number = b.group_number datum2 datum1

    )

    CBC ON (drc.billing_id = src.billing_id)

    WHEN MATCHED THEN

    UPDATE SET drc.maximum_age = src.max_age - 1;

    Error

    Error from the 33 in the command line:

    MERGE INTO DRC USING billing

    (WITH datum1 AS

    (SELECT A.group_number,

    b.billing_id,

    b.rate,

    b.maximum_age,

    b.package_id

    OF group_mst A,.

    b billing

    WHERE A.package_id = b.package_id

    ),

    datum2 AS

    (SELECT max_age, group_number FROM age_max

    )

    SELECT * FROM A, b WHERE A.group_number = b.group_number datum2 datum1

    )

    CBC ON (drc.billing_id = src.billing_id)

    WHEN MATCHED THEN

    UPDATE SET drc.maximum_age = src.max_age - 1

    Error in the command line: 50 column: 1

    Error report:

    SQL error: ORA-00918: column ambiguously defined

    00918 00000 - "ambiguously defined column.

    * Cause:

    * Action:

    Thanks in advance

    Concerning

    Shu

    WITH datum1 AS (SELECT A.group_number,

    b.billing_id,

    b.rate,

    b.maximum_age,

    b.package_id

    OF group_mst A, b billing

    WHERE A.package_id = b.package_id),

    datum2 AS (SELECT max_age, group_number FROM age_max)

    SELECT A.*, b.max_age, b.group_number as group_number_b - ERROR HERE

    OF datum1 A, b datum2

    WHERE A.group_number = b.group_number

  • error with the case statement use what void const query

    Hi all.

    I have found the error in the result set, and then use subqueries and cases of declaration.

    Preparation for example.

    2 examples of tables creation.
    CREATE TABLE T1 
    AS
    (
        SELECT 1 ID , 1 F1 FROM DUAL
        UNION 
        SELECT 2 ID , 1 F1 FROM DUAL
        UNION 
        SELECT 3 ID , 1 F1 FROM DUAL
    ) ;
    
    CREATE TABLE T2
    AS
    (    
        SELECT 2 ID FROM DUAL
        UNION 
        SELECT 3 ID FROM DUAL
    ) ;
     
    This statement returns NULL in subquery
    SELECT 
    T1.ID, TT2.ID , TT2.ISBUG AS NO_BUG 
    FROM T1 
    LEFT JOIN
    (
    SELECT ID , -1 ISBUG FROM T2
    )TT2
    ON T1.ID = TT2.ID
    WHERE TT2.ID IS NULL
     
    But this statement (with operator CASE) does NOT return null in subquery
    SELECT 
     CASE  WHEN 1 = 1 THEN 1 END AS C1,
    T1.ID, TT2.ID , TT2.ISBUG 
    FROM T1 
    LEFT JOIN
    (
    SELECT ID , -1 ISBUG FROM T2
    )TT2
    ON T1.ID = TT2.ID
    WHERE TT2.ID IS NULL
     
    Why?

    Oracle 11.2.0.2.0

    Published by: 927438 on 13.04.2012 03:27

    Published by: 927438 on 13.04.2012 03:31

    Maybe it is related to this one

    outer join of 11g with case - strange results statement.

    seems to be a bug

  • Need help to resolve the error - below the SQL statement to execute cannot be

    Below is my CO as, which creates a callable statement.

    try {}
    OAApplicationModule oaapplicationmodule = (webBean) pageContext.getApplicationModule;
    OADBTransactionImpl t = (OADBTransactionImpl) oaapplicationmodule.getOADBTransaction ();
    OracleCallableStatement proc = (OracleCallableStatement) t.createCallableStatement (lquery,-1);
    proc. Execute();
    t.Commit ();


    }
    catch (SQLException sqlexception)
    {
    throw OAException.wrapperException (sqlexception);
    }




    After the execution of the page, get the below error... (Please find below stack error)

    I have referred the development guide but did not get something useful.

    Please give me clues about the same.

    Raghu cordially

    -- Error Stack ---------------------------------------------------------

    Error page


    Details of the exception.

    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: Houston-27123: SQL error in the preparation of the call statement. Statement: null
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2637)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
    in OA. jspService(OA.jsp:40)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)
    # # 0 in detail
    java.sql.SQLException: the SQL statement to execute cannot be empty or null
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
    at oracle.jdbc.driver.OracleConnection.privatePrepareCall(OracleConnection.java:1138)
    at oracle.jdbc.driver.OracleConnection.prepareCall(OracleConnection.java:1054)
    at oracle.jbo.server.DBTransactionImpl.createCallableStatement(DBTransactionImpl.java:3033)
    at cisco.oracle.apps.xxchr.element.server.webui.XXCHRElementSetSearchCO.processFormRequest(XXCHRElementSetSearchCO.java:343)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
    in OA. jspService(OA.jsp:40)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)
    java.sql.SQLException: the SQL statement to execute cannot be empty or null
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
    at oracle.jdbc.driver.OracleConnection.privatePrepareCall(OracleConnection.java:1138)
    at oracle.jdbc.driver.OracleConnection.prepareCall(OracleConnection.java:1054)
    at oracle.jbo.server.DBTransactionImpl.createCallableStatement(DBTransactionImpl.java:3033)
    at cisco.oracle.apps.xxchr.element.server.webui.XXCHRElementSetSearchCO.processFormRequest(XXCHRElementSetSearchCO.java:343)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
    at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
    in OA. jspService(OA.jsp:40)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)

    Published by: Rambeau on Oct 14, 2010 02:58

    check the code stuck by me again

    Connection Conn = pageContext.getApplicationModule (webBean) .getOADBTransaction () .getJdbcConnection ();

    Connection conn = oaapplicationmodule.getOADBTransaction().getJdbcConnection(); //Right one
    

    Thank you
    -Anil

  • Error with the function "Open/create/overwrite file" with cancel button

    I have attached a very simple VI who embodies what I want to do with my function to open the file. I just want to stop the rest of my program (theoretically embedded in the Structure box) to run if the user deigns to do not to specify a file location.

    However, if you click on the button cancel an error is produced before the rest of the program is running. If ignore you the error and continue, the "canceled" properly true made variable and the Structure of business runs correctly. "" I just want to remove the error message given to me by LabVIEW.

    Any ideas on why or how?

    Read the help of LabVIEW on automatic error handling.

    In your case, you can just wire the output of cluster of error to the structure of your business.

  • Error in the Merge statement using dblink

    Hello

    I am facing the following error when you use the merge statement using the dblink.

    ORA-02069: global_names must be set to true for this operation parameter.

    I can use the same dblink in my select insert and update statements but when I try to use merge then he invites the error said, is also not any syntax error as same statement can be used on the same tables of database instead of dblink.

    Please suggest any help will be much appreciated.

    Thanks in advance

    Hi Aqeel

    If insert and update statements work well through links db, then it should not be a problem with the merge statement. But if you are faced with the question, so please check the entire sql statement with tnsnames on both sides. Please share the tnsnames for the two dbs with dblink ddl.

    Concerning

    Jihane Narain Sylca

  • Defined column ambiguous error with the Merge statement

    Hi guys,.
    I get the ' Error (136,4): PL/SQL: ORA-00918: column ambiguously defined "error with the following query of fusion,
    MERGE INTO Inv_Stk_Trns_Tail a
       USING (SELECT b.*, c.*
       FROM OLR b ,Inv_Stk_Trns_Tail c 
       WHERE b.Trn_Type <> '0'
         AND b.VoucherType IS NOT NULL
         AND b.VoucherType = 'SF'
         AND b.Item_Code = c.Item_Code
         AND c.PROPERTY = 0) src
       ON (a.Sl_No = src.Sl_No and a.Ref_No = src.Ref_No )
       WHEN MATCHED THEN UPDATE SET Item_Avg_Ppr = src.Opn_Avg_Cost,
                                    Rate_Bc = src.Opn_Avg_Cost;
    I tried to solve the problem in a lot of ways, but no use. Please help me solve this problem. If you want more details, I'll give you.
    Thank you
    RAM

    SELECT B.*, c.

    Try all the (necessary) columns on the code and the name of each column a unique alias.

  • Codepage error in the WHERE statement

    Hello

    My program on Win2003 Server with oracle client works fine, but on another machine with customer instant does not.

    The following statement retrieves data on server 1, but nothing on the 2nd machine:
    SELECT myField FROM myTable WHERE someField = "TASZ.

    The problem is with the letter 'A '.

    The database is the same! Only the changing customer.

    Please advice something!

    Kind regards
    Zoltán

    I don't think this is the right forum. What do you use to access the data? Oracle Data Provider for .NET? or something else?
    Also, look in settings NLS_LANG. You may need to set those with instant client.

  • Error code: 400 back when create user on the Organization

    I write a simple php code that use the createUser function to create a new user on the body. The following error appears:

    "POST ". https://xx.XX.XX.XX/API/v1.0/Admin/org/1421086956/users failed, return code: error 400,:, request data: User_Full_Name " [email protected] true Pa55w0rd '

    What does this error mean?

    Here is my code:

     
    /**
     * Function to create a VMware_VCloud_API_UserType data object.
     */
    function createUserObj($userName, $password, $role=null, $isEnabled=null, $fullName=null, $emailAddress=null, $description=null) {
        $obj = new VMware_VCloud_API_UserType();
        $obj->set_name($userName);
        $obj->setFullName($fullName);
        $obj->setDescription($description);
        $obj->setPassword($password);
        $obj->setRole($role);
        $obj->setIsEnabled($isEnabled);
        $obj->setEmailAddress($emailAddress);
    
        return $obj;
    }
     
    /**
     * Create a new user on an existing organization.
     */
    try {
        // create a service object
        $service = VMware_VCloud_SDK_Service::getService();
        // login to the service portal,
        $service->login($server, $auth, $httpConfig);
        // create an SDK Admin object
        $sdkAdmin = $service->createSDKAdminObj();
     
        // get references to administrative organization entities
        $adminOrgRefs = $sdkAdmin->getAdminOrgRefs('testOrg1'); // testOrg1 Organization are already created.
        // create SDK AdminOrg object
        $sdkAdminOrg = $service->createSDKObj($adminOrgRefs[0]);
        // get references to roles
        $adminRoleRefs = $sdkAdmin->getRoleRefs('Organization Administrator');
     
        // create a VMware_VCloud_API_UserType data object
        $userObj = createUserObj('API_Sample_user', 'Pa55w0rd', $adminRoleRefs[0], true, 'User_Full_Name', '[email protected]');
        // invoke createUser function on an SDK AdminOrg object
        $user = $sdkAdminOrg->createUser($userObj);
     
        // Print user list
        $userList = $sdkAdminOrg->getUserRefs();
        echo "<br> User List <br>";
        foreach ($userList as $user) {
            echo "{$user->get_name()} <br>";
        }
    } catch (Exception $e) {
        echo $e->getMessage() . "\n";
    }
    
    
    

    Error code 400 is the standard HTTP status code, indicating the incorrect query.

    The problem is when you get a role of reference, the XML tag for this reference is "RoleReference".

    When you create a user, the XML tag that is expected for the role reference is 'Role '.

    So after getting the reference to the role of the admin vCloud (VCloudType) object.

    $adminRoleRefs = $sdkAdmin-> getRoleRefs ('organisation administrator');

    the user must make one more step to convert the tag.

    There are two ways to do this:

    1. with the help of $adminRoleRefs [0]-> set_tagName ('Role');

    or

    2. with the help of VMware_VCloud_SDK_Helper::createReferenceTypeObj ($adminRoleRefs [0]-> get_href());

    I will record a bug in development of the SDK for this question.

    Thank you

    Kimberly

  • Registry Booster Uniblue says I have total of 928 errors on the registry system and users!

    PC seems to work (maybe slow sometimes). Purchase of Registry Booster and system Twecker will really make a difference? ALTERNATIVES?

    How normal is that after four years of use of the lamp?

    You must ignore the report and uninstall Registry Booster.

    RegistryCleaners of the negligible benefits and can create errors intractable system that cannot be resolved by reinstalling the operating system and everything that this implies.

  • Error when the appellation newly created folder: this item is not found

    Hello

    I found the thread when people are struggling to remove the folder.  However, I have the opposite problem.

    When I create a new folder, type to replace the name "New folder" and then on enter, I get this error:

    This item is not found

    It is no longer in C:\folder1\folder2.  Check the location of the item and try again.

    Two options: retry and cancel.

    I did Try Again and it works.

    How can I fix it?

    Thank you

    Found the thread with replies

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/renaming-folders-causes-item-not-found-error-in/e2cf38c7-9e77-4256-89DE-6308df53d5f9?page=1

  • The button "open in Smartview" error in the workspace for a user

    Hello

    One of our users is facing a problem while trying to open the data forms in Smartview via the workspace by using the option "open in Smartview. When you click on it it gives the following error: "the address is not valid."

    FYI - just to make sure I tried the same thing on another system with a different user name, and it seems to work correctly for the user and the system.

    It looks like an option or setting is not right or was messed up. Can you get it someone please let me know what setting/option could be the cause of this error and how to fix it.

    Future prospects for entries...

    You can connect to My Oracle Support Site and search for document id in the knowledge base search box. BTW, here's what you can do:

    1. uninstall Smart View
    2. Select START-> RUN
    3. type regedit
    4. go to HKEY_LOCAL_USERS\\software\HyperionSolutions\SmartView
    5 remove the Smart View key.
    6. close regedit.
    7 install Smart View

    Also, did you use are secure https protocol? In the options of IE, try to activate "Display mixed content" and see if that helps.

    See you soon... !!

    Rahul S.

Maybe you are looking for

  • RAM for a D20

    Should you use RDIMMS ram? Because I don't really have the budget to pay for it, so it is possible to use the DIMM or same SDRAM?

  • TPT2 microsd card?

    Someone at - it affirms if thinkpad 2 is SDHC or SDXC? It will recognize a 64 GB SDXC card? Anyone has demonstrated this with a specific map? You are looking to get a TPT2 and want to know what the SD to the order. Thank you!

  • What is the best way and to share data between a server and a Client app?

    Hello I'm trying to communicate a Client-Server application. In fact, I already have a simple data transfer via TCP/IP. However, I don't know yet, if TCP/IP is the best (and by that I mean, better, faster, safer, etc.) How to do. What are the cons an

  • What is MirageAgent in Task Scheduler?

    What is MirageAgent in... Task Scheduler?

  • Animation in BlackBerry

    Hi all I have an image containing the circle. I want to add a buttonField to a specific location on this circle and while browsing, the circle turn with buttons on it. How can I do this? Thank you