Create a procedure stored via CMD

How can I create stored via cmd procedure? A few reasons, I could not use SQL DEVELOPER or TOAD in the production server, so I create a sql file that contain SP then call sql via cmd file, but it does not work. Here is the sql file

SET pages 0

coil D:\SP\LOG\output_log.txt

Create or Replace procedure TRUNCATE_DATA

IS

BEGIN

RUN IMMEDIATELY 'TRUNCATE TABLE DONNEES_1;

RUN IMMEDIATELY 'TRUNCATE TABLE DATA_2. "

COMMIT;

END;

spool off

output

user11432758 wrote:

How can I create stored via cmd procedure? A few reasons, I could not use SQL DEVELOPER or TOAD in the production server, so I create a sql file that contain SP then call sql via cmd file, but it does not work. Here is the sql file

SET pages 0

coil D:\SP\LOG\output_log.txt

Create or Replace procedure TRUNCATE_DATA

IS

BEGIN

RUN IMMEDIATELY 'TRUNCATE TABLE DONNEES_1;

RUN IMMEDIATELY 'TRUNCATE TABLE DATA_2. "

COMMIT;

END;

spool off

output

COMMIT after that DDL is superfluous.

You must actually run the code as below by adding a slash on the END following line: statement

[oracle@localhost ~] $ cat make_it.sql

coil output_log.txt

Create or Replace procedure TRUNCATE_DATA

IS

BEGIN

RUN IMMEDIATELY 'TRUNCATE TABLE DONNEES_1;

RUN IMMEDIATELY 'TRUNCATE TABLE DATA_2. "

COMMIT;

END;

/

spool off

output

[oracle@localhost ~] $ sqlplus User1/User1 @make_it.sql

SQL * more: Release 11.2.0.2.0-Production on Mon Dec 16 19:56:41 2013

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production

With partitioning, OLAP, Data Mining and Real Application Testing options

Created procedure.

Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.2.0.2.0 - Production

With partitioning, OLAP, Data Mining and Real Application Testing options

[oracle@localhost ~] $

Tags: Database

Similar Questions

  • Pass an array to a procedure stored via SQL more.

    Hi, I want to spend multiple records in a table to a store proc, where inside, I'll do some DML (insert update delete etc...)
    Later the RECS will be forwarded by my application using VB/ASP etc
    Currently, I want to test this backend... I have a package and a proc.
    But when I call the proc, I get a wrong number of aruments to proc.


    CREATE or REPLACE PACKAGE in the UPD_All_TABs
    TYPE Varry_emp IS TABLE EMP % ROWTYPE;
    PROCEDURE UPD_emp (SheikYerbouti in Varry_emp);
    end UPD_All_Tabs;
    /

    Package created.

    CREATE or REPLACE PACKAGE BODY UPD_ALL_Tabs as
    PROCEDURE UPD_emp (SheikYerbouti in Varry_emp) is
    Start
    I'm looping 1.emp_rec.count
    dbms_output.put_line (emp_rec (i) .nvd_zobjdev);
    /If otherwise etc here end if * /.
    end loop;
    END UPD_emp;
    /


    / * I made a copy of the emp table and modified data. Now I'm selecting and passing
    It internal tmy * /.

    declare
    Type add_varray IS TABLE OF THE emp % ROWTYPE;
    var_add_varray add_varray;
    Start
    SELECT * COLLECT LOOSE var_add_varray FROM tab_copy_of_emp;
    UPD_ALL_Tabs.UPD_emp (var_add_varray);
    end;
    /
    / * This call proc does not work as a type of arguments * /.

    / * However this sub work... displays all REBS copy table * /.
    declare
    Type add_varray IS TABLE OF THE emp % ROWTYPE;
    var_add_varray add_varray;
    Start
    SELECT * COLLECT LOOSE var_add_varray FROM copy_of_emp;
    FOR pos IN 1.var_add_varray.count LOOP
    dbms_output.put_line(pos||) e '|| var_add_varray (POS) .emp_name);
    end loop;
    end;
    /

    I have seen 100s of pages & fourms I don't have a simple solution... all use java or speak to the application.
    If someone had used sql in addition, the examples show a list of hard coded values.
    If there is an example of selection in bulk, its inside the proc is stored.
    I want to call the proc as I have used before.
    Please guide me what is the problem by calling the proc,
    If java is necessary, please give me sample for the above code...
    Please please help. I'm totally lost.

    Maybe this will help you. He is little syntax errors in your code corrected too, those.

    CREATE OR REPLACE PACKAGE UPD_All_TABs AS
    TYPE Varry_emp IS TABLE OF EMPLOYEES%ROWTYPE;
    PROCEDURE UPD_emp(emp_rec in Varry_emp);
    end UPD_All_Tabs;
    
    CREATE OR REPLACE PACKAGE BODY UPD_ALL_Tabs AS
    PROCEDURE UPD_emp(emp_rec in Varry_emp) is
    begin
    for i in 1..emp_rec.count loop
    dbms_output.put_line(emp_rec(i).FIRST_NAME);
    end loop;
    /*if else etc here end if*/
    END UPD_emp;
    END UPD_ALL_Tabs;
    
    declare
      -- Non-scalar parameters require additional processing
      emp_rec upd_all_tabs.varry_emp;
    begin
    SELECT * BULK COLLECT INTO emp_rec FROM EMPLOYEES;
      -- Call the procedure
      upd_all_tabs.upd_emp(emp_rec => emp_rec);
    end;
    
  • Call a procedure stored via JDBC with a REF CURSOR * input variable.

    Hello

    S/n of my client has provided me with a stored procedure that I need to call to get information about products prices. Something along the lines of:

    some_package.getPrices (products IN OUT csr_type);

    where csr_type represents a REF CURSOR. This cursor has a product ID column and a price column. The plan is to move the cursor with the populated product id column and have the routine decorate the slider with the prices.

    The setting in this plan is that it seems that it is not possible to go from JDBC REF CURSOR in . However, I'm not sure, since I can only find throw comments on various forums (e.g. http://www.orafaq.com/forum/t/35088/0/), without any reference. If I go back to the client and tell them that their idea will not work, I prefer to be able to point them to a documentation somewhere

    So I guess my questions are:

    1. it is indeed impossible to pass a REF CURSOR type as a variable input on JDBC to a stored procedure?

    2. is there information I can do about my client?

    3. am I on the right track thinking I need to go down the path of an array of objects?

    Thank you very much to anyone who can help
    Peter Svehla.

    Hi Peter,.

    I see it, missed that you actually want to pass in a list of products. Don't think that you can do this with the current procedure. A slider is just a pointer to a result set.
    How the result set is created and what it looks like, is determined when the cursor is opened.

    What does this procedure with the cursor? -It does not have some OPEN TO ; inside?

    Or, perhaps, you are supposed to send in an open cursor (does not much sense to me)?

    Concerning
    Peter

  • Tables created in a stored procedure cannot be used with dynamic SQL? The impact?

    There is a thread on the forum which explains how to create tables within a stored procedure (How to create a table in a stored procedure , however, it does create a table as such, but not how to use it (insert, select, update, etc.) the table in the stored procedure.) Looking around and in the light of the tests, it seems that you need to use dynamic SQL statements to execute ddl in a stored procedure in Oracle DB. In addition, it also seems that you cannot use dynamic SQL statements for reuse (insert, select, update, etc.) the table that was created in the stored procedure? Is this really the case?

    If this is the case, I am afraid that if tables cannot be 'created and used"in a stored procedure using the dynamic SQL, as is the case with most of the servers of DB dynamic SQL is not a part of the implementation plan and, therefore, is quite expensive (slow). This is the case with Oracle, and if yes what is the performance impact? (Apparently, with Informix, yield loss is about 3 - 4 times, MS SQL - 4 - 5 times and so on).

    In summary, tables created within a stored procedure cannot be 'used' with dynamic SQL, and if so, what is the impact of performance as such?

    Thank you and best regards,
    Amedeo.

    Published by: AGF on March 17, 2009 10:51

    AGF says:
    Hi, Frank.

    Thank you for your response. I understand that the dynamic SQL is required in this context.

    Unfortunately, I am yet to discover "that seeks to" using temporary tables inside stored procedures. I'm helping a migration from MySQL to Oracle DB, and this was one of the dilemmas encountered. I'll post what is the attempt, when more.

    In Oracle, we use [global temporary Tables | http://www.psoug.org/reference/OLD/gtt.html?PHPSESSID=67b3adaeaf970906c5e037b23ed380c2] aka TWG these tables need only be created once everything like a normal table, but they act differently when they are used. The data inserted in TWG will be visible at the session that inserted data, allowing you to use the table for their own temporary needs while not collide with them of all sessions. The data of the TWG will be automatically deleted (if not deleted programmatically) when a) a commit is issued or b) the session ends according to the parameter that is used during the creation of the TWG. There is no real need in Oracle to create tables dynamically in code.

    I noticed that many people say that the "Creation of the tables within a stored procedure" is not a good idea, but nobody seems necessarily explain why? Think you could elaborate a little bit? Would be appreciated.

    The main reason is that when you come to compile PL/SQL code on the database, all explicit references to tables in the code must correspond to an existing table, otherwise a djab error will occur. This is necessary so that Oracle can validate the columns that are referenced, the data types of those columns etc.. These compilation controls are an important element to ensure that the compiled code is as error free as possible (there is no accounting for the logic of programmers though ;)).

    If you start to create tables dynamically in your PL/SQL code, so any time you want to reference this table you must ensure that you write your SQL queries dynamically too. Once you start doing this, then Oracle will not be able to validate your SQL syntax, check the types of data or SQL logic. This makes your code more difficult to write and harder to debug, because inevitably it contains errors. It also means that for example if you want to write a simple query to get that one out in a variable value (which would take a single line of SQL with static tables), you end up writing a dynamic slider all for her. Very heavy and very messy. You also get the situation in which, if you create tables dynamically in the code, you are also likely to drop tables dynamically in code. If it is a fixed table name, then in an environment multi-user, you get in a mess well when different user sessions are trying to determine if the table exists already or is the last one to use so they can drop etc. What headache! If you create tables with table names, then variable Dynamics not only make you a lot end up creating (and falling) of objects on the database, which can cause an overload on the update of the data dictionary, but how can ensure you that you clean the tables, if your code has an exception any. Indeed, you'll find yourself with redundant tables lying around on your database, may contain sensitive data that should be removed.

    With the TWG, you have none of these issues.

    Also, what is the impact on the performance of the dynamic SQL statements in Oracle? I read some contrasting opinions, some indicating that it is not a lot of difference between static SQL and SQL dynamic in more recent versions of Oracle DB (Re: why dynamic sql is slower than static sql is this true?)

    When the query runs on the database, there will be no difference in performance because it is just a request for enforcement in the SQL engine. Performance problems may occur if your dynamic query is not binding variable in the query correctly (because this would cause difficult analysis of the query rather than sweet), and also the extra time, to dynamically write the query running.

    Another risk of dynamic query is SQL injection which may result in a security risk on the database.

    Good programming will have little need for the tables of dynamically created dynamically or SQL.

  • Create the privilege granted procedure, but cannot create the procedure

    I have a user that I have given the following privileges:
    CREATE THE SESION
    SELECT ANY TABLE
    CREATE A PROCEDURE
    CREATE PROCEDURE
    RUN THE PROGRAM
    RUN THE PROCEDURE

    But when I try to create a procedure with this user I get, error proveleges not enough. What I am doing wrong?

    What's wrong? You open the doors of barn proverbial ito security. This isn't how security should be made - allowing a schema create any code of procedure anywhere in the database. Or select data from any table.

    How do you think that Sony's PS network has been hacked and millions of stolen credit card data users?

    By this precarious type of stuff-security approach to security.

    A schema has the minimum privileges in order to achieve its goals and its requirements. Nothing more.

    For example

    // standard logical database schema, 10Gb space allocation
    create user HRDB
      identified by 
      default tablespace USERS
      quota 10G on USERS;
    
    // configure the basic security layer for the schema
    grant
      create session, --// allow client-server connections to schema
      create table, create trigger, --// allow to create standard db objects
      create sequence, create view, --// allow access to defining extended objects
      create procedure --// allow creating stored proc code
    to HRDB;
    

    In addition, you can decide on assign a profile of resources and specific roles and so on. In some cases, you can also leave the schema create types, synonyms and private database links, views materialized, etc.

    Don't grant access. No access to the SYS code and objects. By default. Everything else is a security exception requiring a valid justification.

  • creating multiple procedures at once

    When I try to create multiple procedures at once

    All procedures are stored in the first procedure


    When I run the following script:


    ------------------------------------------------------------------------------------
    create or replace
    PROCEDURE CREATE_ITEM
    (Type % items.item_id ITEM_id,
    ITEM_DESC items.item_description % TYPE,
    ITEM_COST items.item_cost % TYPE,
    ITEM_QUAN items.item_quantity % TYPE)
    AS

    BEGIN

    If (ITEM_QUAN > = 0)
    THEN

    insert into point values
    (upper (item_id) |) LPAD(seq_item_id.nextval, 4, '0'), upper (ITEM_DESC), ITEM_COST, ITEM_QUAN);

    DBMS_OUTPUT. PUT_LINE (ITEM_DESC |) 'has been saved');

    on the other
    DBMS_OUTPUT. Put_line ('quantity should be 0 or more!");
    end if;
    END CREATE_ITEM;


    -------------------------------------------------------------------------------------------------------

    CREATE OR REPLACE PROCEDURE CREATE_ORDER
    (customer_id customer.customer_id % TYPE)
    AS
    BEGIN
    insert into orders values
    (seq_order_id.nextval, 0, customer_id, sysdate, 1);
    END CREATE_ORDER;

    ------------------------------------------------------------------------------------------------------

    It creates the "CREATE_ITEM" procedure and store the entire script of...

    Is there a solution for this problem?


    concerning

    Hello

    Place a slash
    /
    between the two procedures on its own line.
    SQL * need it as well.

    Kind regards
    Dermot.
    SQL development team

  • With the clause in a procedure stored with update

    create table TEMP_STAGE as
    (select ' 111111' student_id, ' don't TMP_TEST FROM DUAL ")
    UNION
    Select '111111' student_id, ' don't TMP_TEST FROM DUAL
    UNION
    Select ' 222222' student_id, ' don't TMP_TEST FROM DUAL;
    )

    CREATE OR REPLACE PROCEDURE TEMP_SEC_TEST
    AS
    BEGIN
    UPDATE TEMP_STAGE S
    SET S.TMP_TEST = 'Y '.
    WHERE STUDENT_ID IN
    (
    WITH MARK AS
    (
    SELECT '111111' DOUBLE STUDENT_ID
    )
    Select STUDENT_ID in BRAND
    );
    END;

    I have a huge SQL statement with several "with" of tables in the statement. It works if I run it as a script but it doesn't work when I put it in a stored procedure.
    When I run the above, it gives me an error...
    Syntax error (8:9) check
    Found 'BOOKMARK' waiting...

    It gives me an error the TSF online brand...

    I have to do it in the stored procedure that the statement is very complicated...

    Help, please.

    Which tool you use to create the procedure? Error syntax Check (8:9) is not a mistake, Oracle, or what I know from any Oracle product.

    It works very well in sqlplus.

    SQL> CREATE procedure my_p AS
      2  BEGIN
      3     UPDATE t
      4     SET descr = 'Un'
      5     WHERE id IN (WITH tmp AS (
      6                     SELECT 1 x FROM dual)
      7                  SELECT x FROM tmp);
      8  END;
      9  /
    
    Procedure created.
    
    SQL> SELECT * FROM t;
    
            ID DESCR
    ---------- ----------
             1 One
    
    SQL> exec my_p;
    
    PL/SQL procedure successfully completed.
    
    SQL> SELECT * FROM t;
    
            ID DESCR
    ---------- ----------
             1 Un
    

    John

  • Load the url in tab of firefox running via cmd versions

    I launched several version of firefox with the following command.
    "\Program Files\Mozilla Firefox 18\firefox.exe" - profile "C:\f18" - no-remote
    "\Program Files\Mozilla Firefox31\firefox.exe" - profile "C:\f31" - no-remote
    Both versions are running, now I want to load a url in tab via cmd versions. currently I'm unable to do so. I have tried almost every flag / command, documented by Mozilla.
    for example
    "\Program Files\Mozilla Firefox18\firefox.exe" - profile "C:\f18" - distance "openURL (http://example.com, new-tab)".
    "\Program Files\Mozilla Firefox18\firefox.exe" - distance "openURL (http://example.com, new-tab)".
    "\Program Files\Mozilla Firefox18\firefox.exe" - profile "C:\f18" - distance "openURL (http://example.com, new-tab)".
    Whenever I faced with an error due to parent.lock or another new windows (with the new process) has appeared.
    - - - - - - - - - - - -
    I want to open a url in the running versions of Mozilla Firefox tabs. If please correct me if I'm doing wrong or guide me how can we solve this problem,
    Thank you

    The - No.-line remote control switch does not allow you to use - remote (as its name suggests). Which took effect in Firefox. 9 (see https://developer.mozilla.org/docs/Mo.../Command_Line_Options#-no-remote).

    Could test you Firefox start with the (not well-documented) new - new-switch instance instead of - no.-remote and see if it works? Which was added to Firefox 13.

  • Create a procedure SQL with SQL toolkit

    Hello

    I use the SQL Toolbox to get data from a MySQL database (using ODBC connectors).

    I would like to automatically create a procedure on my DB when lauching my application software, so that I do not know there is when I use it.

    But I can't figure out how to do with the SQL Toolbox.

    Indeed, you try to run this script (which works by operating on MySQL workbench) returns the following error:

    DELIMITER $$

    CREATE DEFINER='indus'@'%' PROCEDURE ' FPY'(datetime IN START_DATETIME, IN END_DATETIME datetime)
    BEGIN
    CREATE a temporary table ListingUUT
    (
    UUT_SERIAL_NUMBER VARCHAR (127).
    TEST_COUNTER INT,
    DateTime TEST_TIME,
    UUT_STATUS VARCHAR (32)
    );

    CREATE a temporary table Stat_FPY
    (
    TESTED INT,
    TESTED_ONCE INT,
    REPORT / FLOAT
    );

    INSERT INTO Stat_FPY VALUES (0,0,0).
    INSERT INTO ListingUUT
    (
    SELECT
    UUT_SERIAL_NUMBER, SUM (1), START_DATE_TIME, UUT_STATUS
    OF booster_results.uut_result
    WHERE START_DATE_TIME BETWEEN START_DATETIME AND END_DATETIME
    UUT_SERIAL_NUMBER GROUP
    ORDER BY DESC START_DATE_TIME
    )
    ;

    END

    -Online error-2147217900 took place at NI_Database_API.lvlib:Conn Execute.vi-> Untitled 1

    Possible reasons:
    ADO error: 0x80040E14
    Exception occurred in the Microsoft OLE DB provider for ODBC drivers: [MySQL] [ODBC 5.2.a Driver] [mysqld - 5.6.10 - log] you have an error in your syntax SQL; consult the manual for your version of the MySQL server for the right syntax to use near ' DELIMITER $$

    CREATE DEFINER='indus'@'%' PROCEDURE ' FPY '(IN START_DATETIME datet' à la ligne 1 en NI_Database_API.lvlib:Conn Execute.vi-> sans titre 1)

    An idea so that I can create the procedure?

    Finally, give up on the creation of the procedure with SQL Toolkit functions.

    In fact using exec.vi system to address directly the command-line mysql server...

  • I use a third party inf file when creating a network connection via my USB port. The USB connection will become inadmissible and also cause the laptop hang up.

    I use a third party inf file when creating a network connection via my USB port. The USB connection will become inadmissible and also cause the laptop hang up. Currently I try to modify the INF file but is seeking a help or suggestions in T/S to this problem. Thank you.

    original title: third party INF problems

    Hi Paul,.

    ·         Why are you using a USB port to create a network connection instead of using an Ethernet connection?

    You can see the following article on how to set up a network.

    How to set up a small network with Windows XP Home Edition (PART 1)

  • Message via CMD in Windows 8.

    Mr President.

    I want to know how to send an SMS for a machine to another via CMD when they are connected through LAN in windows 8?

    net Send and msg commands do not work in windows 8.

    I use,

    HP Pavilion Notebook PC-15,

    Simple language Windows 8 Edition.

    Hi Arun,

    Your computer is connected to the domain network?

    If this isn't the case, then try the following steps:

    Since there is no net do not send command in Windows Vista and Windows 7 (or even Windows 8), this command has been replaced by msg.exe, but not in all editions of Windows - only professional and commercial versions are able to send network messages via msg command. In other editions of Windows or as an advanced replacement, try searching online using your favorite search engine for a software application that would help you in sending messages with the command line utility to via the command prompt.

    THIRD WARNING:
    Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    MSG username/Server: server /time:seconds/v/w /? MessageText
     
    MSG NomSession/Server: server /time:seconds/v/w /? MessageText
     
    MSG sessionID/Server: server /time:seconds/v/w /? MessageText
     
    MSG @filewithnames/Server: server /time:seconds/v/w /? MessageText
     
    MSG * / Server: server /time:seconds/v/w /? MessageText

    It will be useful.

    Please let us know in case you need assistance on issues related to Windows.

  • Hi, I created the procedure and its code is / / DELETE FROM <? = odiRef.getObjectName ("L", "TRG_SALES", "ORACLE_ORCL_LOCAL_SALES", "", "D")? > / / and when I'm running, the error appeared //com.sunopsis.tools.core.exception.SnpsSimpleMessageExcepti

    Hi, I created the procedure and its code is / / DELETE FROM <? = odiRef.getObjectName ("L", "TRG_SALES", "ORACLE_ORCL_LOCAL_SALES", "", "D")? > / / and when I'm running, the error appeared.

    com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: error in the interpretation of the task.

    Task: 1

    java.lang.Exception: the application script threw an exception: com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Exception getObjectName ("L", "TRG_SALES", "ORACLE_ORCL_LOCAL_SALES", "DEVELOPMENT", "D"): SnpLSchema.getLSchemaByName (): SnpLschema is no information OSB: Delete_Tar_Sales on line: column 0: columnNo

    at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:489)

    at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:737)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:465)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:366)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:292)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:855)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:662)

    Caused by: java.lang.Exception: the application script threw an exception: com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Exception getObjectName ("L", "TRG_SALES", "ORACLE_ORCL_LOCAL_SALES", "DEVELOPMENT", "D"): SnpLSchema.getLSchemaByName (): SnpLschema is no information OSB: Delete_Tar_Sales on line: column 0: columnNo

    at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:476)

    ... 11 more

    Caused by: org.apache.bsf.BSFException: the application script threw an exception: com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Exception getObjectName ("L", "TRG_SALES", "ORACLE_ORCL_LOCAL_SALES", "DEVELOPMENT", "D"): SnpLSchema.getLSchemaByName (): SnpLschema is no information OSB: Delete_Tar_Sales on line: column 0: columnNo

    at bsh.util.BeanShellBSFEngine.eval (unknown Source)

    at bsh.util.BeanShellBSFEngine.exec (unknown Source)

    at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:471)

    ... 11 more

    Text: REMOVE OF <? = odiRef.getObjectName ("L", "TRG_SALES", "ORACLE_ORCL_LOCAL_SALES", "", "D")? >.

    at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:764)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:465)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:366)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:292)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:855)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:662)

    If you do this in a procedure, use the following syntax:

    <%=odiRef.getObjectName("L", "TRG_SALES", "D")%>

    and set the relevant logical schema in the options on the target tab of the procedure. Also, make sure you only select the correct technology type in the options on the target tab.

  • Call procedures stored in adf

    Hi all

    is it possible to call procedures stored in the adf.

    Thank you

    Hello

    It's my first chance to "pay it forward". Please visit this link (which helped me): Blog of Zeeshan Baig: the PL/SQL procedure call and function in the Oracle ADF application

    James

  • Create the procedure using time as a variable

    Dear team,

    Please find below the details.

    Database version:-11g Release 2

    I want to create a procedure to help if another condition. Can someone help me how declare TIME as variable. just for example

    If the time < 6 pm.

    Start-> run, loop

    Another thing,

    end of the program.

    My doubt is how to initialize with time as a variable

    Dear Sybrand,

    k do not write the code for free... And I don't do any kind of work. I'm a businessman. Just for Oracle knowledge point of view, I asked the question. And the next time suggest me.

    Kind regards

    Vivek

    Director-general

  • Create the procedure to check existing data, then update, if not then insert.

    Dear all,

    Help, please
    I create a procedure to check the current data are available or not tables, if not match, the row in the table will insert another table, if matched, data will be updated.
    table source: Table_read;
    check table: stor_matdata;
    key to two table ID is (assy_no and t.produced_number).
    Here's the code I create, but he still has an error...
    ---------------------------------------------------------------------

    create or replace
    procedure Matched
    as
    Start
    Fusion in stor_matdata m using double on (m.assy_no = t.produced_number)
    When not matched then insert into stor_matdata (sequence_id, assy_no, package, basic_type, materialnumber, factor, mattype)
    Select rownum, t.producednumber, t.package_name, t.basic_type, t.consumed_number, t.factor, t.mattype FROM (select * from Table_read xxxx) t
    when matched, then update package set = t.package_name, basic_type = t.basic_type, materialnumber = t.consumed_number, = t.factor, mattype = t.mattype, sequence_id = rownum factor;
    end Matched;


    Thank you and best regards,

    Hadi

    There is a support missing after values

            VALUES (
                    t.r
                   ,t.producednumber
                   ,t.package_name
                   ,t.basic_type
                   ,t.consumed_number
                   ,t.factor
                   ,t.mattype
                   );
    

    Concerning
    Marcus

Maybe you are looking for

  • Kindle book pages translate Amazon "not responding".

    Since the update to FF43, Windows Vista, I get a message "Not responding" whenever I visit a web page on Amazon.com that contains the information of product for a Kindle book. For example, http://www.amazon.com/gp/product/B0189WSN9K/. I even tried to

  • HP SLATE 7 3400 sound we Intermittent

    Hello I have some difficulty with the audio output. The sound will often drop out if I have: Connect or disconnect the charger and plug the or Unplug the earphones or What seems sometimes random. Often I neeed to resater the tablet to get the sound.

  • HP M1536dnf: HP same M1536dnf found by google

    Is this normal, what you 'google' with the phrase as "HP M1635dnf IO timeout" you get a lot of HP printers accessible https://www.Google.com/search?q=M1536dnf++IO+timeout%3A&ie=UTF-8&OE=UTF-8 And would that be the result to get pages with content lik

  • Windows can be activated after chaning the motherboard?

    Original title: lisence. I have PC brand. Defective motherboard and change new motherboard (not HP). The windows xp pro license still valid or not.

  • CTRL + Alt + S shortcut in Windows 8.1 key

    Hello I am having some problems with ctrl + alt + s shortcut that shows my information system. I want to cancel the shortcut because the other programs I use have the same shortcut. I tried to locate the HP Support information (Pavilion) in the folde