Need to write a plsql block for calling another procedure.

Hi Guys,
I have a requirement to write a plsql block and to call another procedure which is having 5 parameters (each parameter having multiple values). Calling procedure generates one SQL query and it needs to be generated all combinations and print in another table.
I need to pass multiple values for first three parameters from my PLSQL block and run.
call sample proc:
procedure(
param1 varchar2,
param2 p_varchar2,
param3 p_varchar2,
param4 in varchar2,
param5 in number
is
begin
ls_sql_query := 'with client_query as (select * from table)';
end;
Thanks in advance!
Rgds,
LRK

This article is on exactly your subject. It is worth a careful read.
Ask Tom: On Popularity and Natural Selection
I paraphrase: "Always code a reference to every possible bind variable but do so in such a way that the optimizer removes the bind variable for us if we aren't going to actually use it in that particular execution of the SQL statement."
P.S. This is the same answer I gave when you asked the same question earlier.

Similar Messages

  • Dynamically call another procedure

    In SQLServer you can have a variable that holds a procedure
    name. The variable can then be used in the execute statement.
    Is there any way in PLSQL to dynamicaly call another procedure.
    example:
    begin
    declare procname varchar2(32) = 'proc1';
    --now call the procedure
    procname -- ?
    execute immediate procname -- ?
    end;
    Thanks,
    Dermot.

    Just wrap it in an anonymous block:
    create or replace procwrap
    (p_procname in varchar2)
    is
    begin
    execute immediate 'begin ' || p_procname || '; end;';
    end;

  • Creation of DB Adaptert for calling stored procedure in MS SQL server

    Hi,
    I need to create a DB adapter to call a stored procedure in MS SQL Server.
    I have gone thru the thread MS SQL Server database connection
    It mentions that we need to use a command line utility for generating the wsdl and xsd for calling stored procedures in MS SQL server. Please provide information where to find this utility and how to use it.
    Any links to tutorials are welcome.
    Thanks !!.
    Silas.

    Command line is required for stored procedures, if you are using the basic options you don't need to worry.
    (1) Download MS SQL Server 2005 JDBC Driver from Microsoft Site. http://msdn.microsoft.com/en-us/data/aa937724.aspx
    (2) The download is self extracting exe file. Extract this into Program Files on your machine. It should create folder as "Microsoft SQL Server 2005 JDBC Driver"
    (3) In above mentioned folder search for sqljdbc.jar copy this file into JDeveloper\JDBC\lib folder.
    (4) Open JDeveloper/jdev/bin/jdev.conf file add following entry.
    AddJavaLibPath C:/Program files/Microsoft SQL Server 2000 Driver for JDBC/lib
    While executing this step make sure that your JDeveloper is closed.
    (5) On command prompt go to J Developer folder and execute following command
    jdev -verbose
    This will open JDeveloper.
    (6) Now go to JDeveloper > Connections > Database Connections > New Database Connection
    (7) Select Third Party JDBC
    (8) Specify MS Sql Server User Name, password and Role.
    (9) In connection page specify following
    - Driver Class: com.microsoft.sqlserver.jdbc.SQLServerDriver
    - For class path browse to C:/Program files/Microsoft SQL Server 2000 Driver for JDBC/lib folder, select sqljdbc.jar add it as library.
    - Specify URL as following.
    jdbc:sqlserver://SERVERNAME:1433;databaseName=MSSQLDBNAME;
    (10) Go to Test page and test it.
    cheers
    James

  • In SQLScript, how to use EXEC to call another procedure with parameters in procedure?

    Hi experts,
    In SQLScript, How to use EXEC to call another procedure with input and output parameters in procedure?thanks very much

    Hi Sagar,
    thank you! I generate another procedure with an input parameter and an output parameter in a procedure. Then i need to call the generated procedure using EXEC. Here is my code:
    create procedure ftest1(out sum_num bigint)
    as
    begin
    declare fa_output bigint;
    declare v_sql_drop varchar(200);
    declare v_sql varchar(500);
    declare cursor c_cursor1 for select num from TABLE1;
    --v_sql_drop := 'drop procedure fe';
    --exec v_sql_drop;
    v_sql := 'create procedure fe(in i_num bigint,out o_num bigint) as begin';
    v_sql := :v_sql || ' o_num := :i_num * 2 + :i_num * :i_num;';
    v_sql := :v_sql || ' end';
    exec v_sql;
    open c_cursor1;
    for c_item as c_cursor1 do
    exec 'call fe(c_item.num,o_num=>fa_output)';
    if sum_num is null then
    sum_num := fa_output;
    else
    sum_num := :sum_num + fa_output;
    end if;
    end for;
    close c_cursor1;
    end;
    The underline code is using exec to call the generated procedure. But this method cannot work. Any suggestion? thanks again!

  • Writing a simple procedure to call another procedure

    Greetings,
    im pretty new to pl/sql and just recently started playing around with it, I was wondering howi would go about creating a basic skeleton of procedure that would call another procedure.
    function testfunction is the function I wish to call and accepts 3 params, it then returns a pl/sql table which contains all the rows I want. I then want to populate a table with this data. Do I need to create a loop within the procedure to populate the table or can I use a function of some sort to just directly insert the entire pl/sql table into the actual table?

    Thankyou both for the follow ups! I may have to go with the loop method but before I dive into that I was reading about the merge function and feel as though it would do what I need perfectly (I just need to append data to a table)
    So I came up with something like this
    PROCEDURE test_procedure
    IS
    BEGIN
    MERGE INTO test_table
    USING (test_package.test_function(123, 456, 789))
    WHEN MATCHED THEN UPDATE SET FIELDA = resulta, FIELDB = resultb, FIELDC = resultc
    WHEN NOT MATCHED THEN INSERT (FIELDA, FIELDB, FIELDC) VALUES (resulta, resultb, resultc)
    END test_procedure;
    This seems like it would work great, the resulta, resultb, and resultc are all returned from the function but im not sure exactally about that being the correct way to call it. I will go read up on this approach but fall back on the looping if it doesnt work out, thankyou everyone =D

  • Need sample source code for calling stored procedure in Oracle

    Hi.
    I try to call stored procedure in oracle using JCA JDBC.
    Anybody have sample source code for that ?
    Regards, Arnold.

    Thank you very much for a very quick reply. It worked, but I have an extended problem for which I would like to have a solution. Thank you very much in advance for your help. The problem is described below.
    I have the Procedure defined as below in the SFCS1 package body
    Procedure Company_Selection(O_Cursor IN OUT T_Cursor)
    BEGIN
    Open O_Cursor FOR
    SELECT CompanyId, CompanyName
    FROM Company
    WHERE CompanyProvince IN ('AL','AK');
    END Company_Selection;
    In the Oracle Forms, I have a datablock based on the above stored procedure. When I execute the form and from the menu if I click on Execute Query the data block gets filled up with data (The datablock is configured to display 10 items as a tabular form).
    At this point in time, I want to automate the process of displaying the data, hence I created a button and from there I want to call this stored procedure. So, in the button trigger I have the following statements
    DECLARE
    A SFCS1.T_Cursor;
    BEGIN
    SFCS1.Company_Selection(A);
    go_Block ('Block36');
    The cursor goes to the corresponding block, but does not display any data. Can you tell me how to get the data displayed. In the future versions, I'm planning to put variables in the WHERE clause.

  • Need 2x click or confirmation screen for calling / texting

    This is a call out to Apple to implement double click for calling / texting - or at least offer a confirmation screen when dialing from screens like 'favorites' or 'recents'
    I can not tell you how many times I have initiated calls erroneously when attempting to scroll (or I've called the wrong number because I didn't hit the correct contact on first touch), and how many times I have inadvertently hit send on text messages before I was ready, simply because I was trying to type 'o', 'u' or 'p', or my finger just touched the screen in the wrong place.
    The phone is all screen and it's really difficult not to touch it. The issue is that just touching the screen often initiates an unintended call or other action, especially if trying to operate the phone with one hand or while in motion.
    Please chime in here to let Apple know that this is an issue that needs to be addressed. I know many of you are having the same usability issues. Let Apple know by responding to this post with your stories of frustration.
    Thanks,

    If apple would add that feature there would be allot more users requesting it taken off than the users that would actualy want it so I am sure that they would not want to add features just for a select few customers
    There are to many taps allready up the point when you place a call, why add more
    There is an easy fix for your problem: be carefull when you tap on your screen

  • Using Execute Immediate in PLSQL block Vs Stand alone procedure

    I am facing very unusual ( atleast unusual to me ) with usage of "Execute Immediate" statement.
    I have a table dynamic_sql with one column plsql_block as VARCHAR2(4000);
    I have stored some PLSQL blocks ('DECLARE ..... BEGIN.... END.... ) in this column .
    Now I want to execute these PLSQL blocks one after other depending on certain conditions .
    In order to archive this I wrote a PLSQL block as below
    DECLARE
    Cursor c1 is
    select plsql_block from dynamic_sql
    begin
    for irec in c1
    loop
    <<< Condition >>>
    begin
    execute_immediate(irec.plsql_block);
    exception
    when others then
    raise_application_error(-20001,'error ' ||irec.plsql_block||' '||sqlerrm);
    end loop ;
    end ;
    With above PLSQL block , "execute immediate" is executing PLSQL block successfully without any error
    But When I converted above PLSQL block into standalone procedure as shown below , I am getting error .
    CREATE OR REPLACE procedure test AS
    Cursor c1 is
    select plsql_block from dynamic_sql
    begin
    for irec in c1
    loop
    <<< Condition >>>
    begin
    execute_immediate(irec.plsql_block);
    exception
    when others then
    raise_application_error(-20001,'error ' ||irec.plsql_block||' '||sqlerrm);
    end loop ;
    end ;
    BEGIN
    test;
    end ;
    It is showing the value of irec.plsql_block but not showing sqlerrm...
    I found this is very unusual as I am able to execute "execute immediate" statement with PLSQL block but not with similar procedure .
    can anybody explain me why this is happening?
    Thanks in Advance
    Amit

    Hello,
    It doesn't make any sense to add SQLERRM for user defined exception, unless you want to raise application error for already defined error (e.g NOT_DATA_FOUND, ..)
    Check following piece of code and its output,
    CREATE OR REPLACE PROCEDURE myinsert1
    AS
       v_count   NUMBER;
       v_sql     VARCHAR2 (300);
    BEGIN
       v_sql :=
          'INSERT INTO ENTITY_EMPLOYEE VALUES(0,''TIM'',''LASTNAME'',10000)';
       BEGIN
          EXECUTE IMMEDIATE v_sql;
          COMMIT;
       EXCEPTION
          WHEN OTHERS
          THEN
             DBMS_OUTPUT.PUT_LINE (SUBSTR (SQLERRM, 1, 300));
             RAISE_APPLICATION_ERROR (-20002, 'My Error ' || SQLERRM, TRUE);
             RAISE;
       END;
    END;
    Output._
    ORA-20002: My Error ORA-00001: unique constraint (ENTITY_EMPLOYEE_PK) violated
    ORA-06512: at "MYINSERT1", line 21
    ORA-00001: unique constraint (ENTITY_EMPLOYEE_PK) violated
    ORA-06512: at line 2
    Regrds

  • PLSQL portlet - problem calling stored procedure -

    Good day folks. My portal version 10.1.2. I have a dynamic page with multiple rows. For simplicity, example here has two columns => id and value. The initial dilemma - The stored procedure specified in the action attribute of the <form> tag has to have parameters that match in name and count to the fields on the html form. But, the number of rows is variable on the form. I currently use pl/sql to generate the page. I have two forms in the html - form A has two static fields id and value, with an action attribute of the stored procedure I want to run. The second html form is form B. It has id_1, value_1, id_2, value_2, id_3, value_3 and so on with a variable number of rows. SO, when the user clicks the "Submit" button at the bnottom of the page, I call a javascript passing in the number of rows. I then loop through the Form B, and for each row of data, I do a submit of Form A. My goal is to run the stored procedure in the database for each row of data in Form B. I use Form A to accomodate the requirement that the stored procedure has to match in name and number the parameters inthe form.
    This is to avoid an update button on each row of data, also.
    The problem - in my javascript, I set the values of Form A to the values from Form B correctly. However, only the last rowis successful in running the procedure. For example, if I have 3 rows in Form B, I want to submit form A 3 times, but, it only seems to submit once for row #3. The weird thing is if I put an alert message after the document.formA.submit(); command, the stored procedure is successfully called for each row in form B, but when I remove the alert, only the last row successfully calls the procedure!
    Thanks in advance if anybody has any ideas -
    Kent

    Let's continue the example of 3 rows.
    It sounds like that you submit the form 3 times in quick succession, and so before the Action for Form A has had time to run and respond for the first row, the second row has been submitted, and therefore the web page will stop trying to display the results from the submit of Row 1 (by this I mean it'll stop the http request, if you do this quick enough then the back-end function won't run). Then the same thing happens to Row 2's submit when Row 3 starts.
    What it sounds like you need to do is to use only 2 parameters, but repeat them on the HTML page, when the submit is run it's passed to oracle as a type 'owa_util.vc_arr'. There is a more comprehensive solution to this problem in another thread:
    passing variable number of arguments in a stored procedure
    Please note though that you have to be careful of the situations where your form only has one row to submit to the oracle function, in this case the data type of the parameter will be a VARCHAR2 rather than a owa_util.vc_arr. The solution to this problem is to always have a an extra dummy parameter which is empty and you skip over it during your processing. (Thought I'd better include this information in case you ran into this problem).
    Hope this helps.
    Cheers,
    Ron.

  • Syntax for calling Stored procedures?

    Seems straightforward but I just can get the syntax.
    Here's the procedure defined in SQL
    CREATE Procedure usp_InsTest
    @title varchar(150),
    @length int,
    @catid int,
    @date datetime,
    @filename varchar(50),
    @typeid int,
    @desc varchar(2000),
    @statusid int,
    @assign char(1),
    @languageid int = null
    as
    Insert into test(TestTitle,TestLength,TestCatID,TestDate,TestFileName,
    TestTypeID,TestDesc,TestStatusID,TestIsAssigned,
    TestLanguageID)
    values (@title,@length,@catid,@date,@filename,@typeid,@desc,
    @statusid,@assign,@languageid)
    GO
    I have tried a number of ways. What is the correct sytax for calling a stored procedure with variables?

    Here's what I've come up with...
    Connection dbConn;
    Driver d = (Driver)Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    String URL = "jdbc:odbc:" + "cms";
    dbConn = DriverManager.getConnection(URL, "sa", "");
    CallableStatement s;
    String x = "{call usp_InsTest(@title,@length,@catid,@date,@filename,@typeid,@desc,@statusid,@assign,@languageid)}";
    Calendar c = Calendar.getInstance();
    s = dbConn.prepareCall(x);
    s.setString(1,TestTitle);
    s.setInt(2,Integer.parseInt(TestLength));
    s.setInt(3,6);
    s.setDate(4,new java.sql.Date(System.currentTimeMillis()));
    s.setString(5,TestFileName);
    s.setInt(6,Integer.parseInt(TestTypeID));
    s.setString(7,"Test Description");
    s.setInt(8,Integer.parseInt(TestStatusID));
    s.setInt(9,Integer.parseInt(TestIsAssigned));
    s.setInt(10,1);
    ResultSet r = s.executeQuery();
    I get
    java.lang.NullPointerException
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.clearParameter(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setChar(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setString(Unknown Source)
    at CMSBatch.addToDatabase(CMSBatch.java:242)
    at CMSBatch.actionPerformed(CMSBatch.java:312)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    Line 242 is the first setString.
    Is my prepareCall statement correct?

  • Pocedure calling another procedure

    Hi all,
    I hav a procedure which will display all the student records.
    CREATE OR REPLACE procedure a
    AS
    CURSOR o IS
    SELECT * FROM lgrade;
    o_rec o%ROWTYPE;
    BEGIN
    OPEN o;
    LOOP
    FETCH o INTO o_rec;
    EXIT WHEN o%NOTFOUND;
    dbms_output.put_line(o_rec.cno||' '||o_rec.csno ||' '||o_rec.descript||' '|| o_rec.sfname||' '||o_rec.slname||' '|| o_rec.score||' '|| o_rec.grade);
    END LOOP;
    CLOSE o;
    END;
    It displays course, section numbers, student's name , score and grade.
    CS 10 2 DP Overview Jeff Runyan 86.333 B
    CS 100 2 Hands, On Windows Peggy Noviello 89 B
    CS 100 1 Hands, On Windows Debra Boyce 88.766 B
    CS 100 1 Hands, On Windows Rommel Frost 88.1 B
    CS 100 2 Hands, On Windows J. Segall 85.333 B
    CS 100 5 Hands, On Windows Jose Benitez 91.6 A
    CS 100 4 Hands, On Windows Mrudula Philpotts 90.613 A
    CS 100 4 Hands, On Windows Gene Bresser 84.568 B
    CS 100 3 Hands, On Windows Michael Lefbowitz 86.916 B
    CS 100 1 Hands, On Windows Lula Oates 82.1 B
    CS 100 1 Hands, On Windows Roger Snow 90.266 A
    CS 100 3 Hands, On Windows Monica Waldman 86.472 B
    CS 100 1 Hands, On Windows Regina Bose 94.1 A
    CS 100 1 Hands, On Windows Jenny Golsmith 87.1 B
    1) I want to use this procedure inside another procedure say b to display only certain cousre records. How can i do that?
    2) I want to use this procedure inside another procedure to display particular student's different course grades. How can i do that?

    PL/SQL is not usually used this way - displaying data. The DBMS_OUTPUT interface is very primitive - and does not "display" anything. It is a static PL buffer that contains lines. The client, e.g. SQL*Plus/TOAD, displays its contents after calling Oracle to execute code.
    That said, PL/SQL can be used to teach programming fundamentals - despite the fact that this is NOT how one would usually apply the PL/SQL language to real problems.
    A display procedure should be just that - display. Nothing else. A well designed procedure (or function) does a single job, and does it well. So a display proc can look as follows:
    create or replace procedure DisplayStudent( studentRow lgrage%rowtype ) is
    begin
      dbms.output.put_line( ... insert your display contents ... );
      .. etc ..
    end;
    1) I want to use this procedure inside another procedure say b to display only certain cousre records. How can i do that?
    2) I want to use this procedure inside another procedure to display particular student's different course grades. How can i do that?The same way. By using SQL to specify the data set that you want to display. For example:
    begin
      for student in ( select l.* from lgrade l where l.score >= 80 ) -- display students with a score of 80% plus
      loop
        DisplayStudent( student ); -- call the display proc and pass it a student row to display
      end loop;
    end;
    /And that is the basic approach. Two important factors.
    Modularise. A good program design means creating building blocks to solve the problem. Where a block can be re-used (like the DisplayStudent procedure above).
    Maximize SQL. SQL is a very capable and powerful program language. You use it to crunch the data. You do not pull all the rows from the table into PL/SQL and then apply an IF condition to filter the data. That is row-by-row and slow-by-slow processing.

  • Need to write a startup script for TunTap

    Dear community,
    I am using 10.10.1, 13" MBPr Late 2013 and I need to be able to access my Work VPN. From what i have been told, the OS X client can't work and that I have been advised to use Shrew Soft VPN. (We initially tried to get the WatchGuard Firewall to build a Mac .dmg and that didn't work). To get ShrewSoft to work, I have had to follow these steps:
    http://ulaptech.blogspot.co.uk/2012/11/shrew-soft-vpn-client-for-mac-os-x.html
    ·         Install the qt-mac-opensource-4.7.1.dmg file first
    ·         Install the tuntap20111101.tar.gz file second
    ·         Install the shrew soft client.
    But the TunTap download that is above will not work as it is unsigned and Yosemite has now killed off unsigned kexts.I tried turning off the requirement for OS X for signed kexts by using this command:
    sudo nvram boot-args="kext-dev-mode=1"
    Then rebooting, but it didnt work.
    I can get the VPN to work if I open up terminal and enter these two commands:
    sudo kextload /library/extensions/tap.kext
    sudo kextload /library/extensions/tun.kext
    But I have to do this everytime i turn my Mac on.
    Could somebody please help me write those two lines into a startup script? As I really have no idea how to do it.
    Your help and guidance would be appreciated

    Choose Utilities from the Finder’s Go menu, open the AppleScript Editor, and paste in the following:
    set thepassword to text returned of (display dialog "Your administrator password is required." default answer "" with hidden answer)
    do shell script "kextload /Library/Extensions/tap.kext" with administrator privileges password thepassword
    do shell script "kextload /Library/Extensions/tun.kext" with administrator privileges password thepassword
    Save it as an application and set it as a login item.
    (120186)

  • Need to write USER DEFIND FUNCTION for following Business logic in SAP XI.

    Hi,
      I have Tto write a user definf function in SAP XI. can any once help in doing so.
    For the decimals it has to be completed with 0 (zeros) on the right if the value of the field has less than the size of the decimals and also it has not be sent comma (,) or point (.) in the numeric fields. Example: The monthly received quantity (field QTARICM) is 587,57. In the output file it has to be sent 000000000587570 (size 12 + 3 dec).
    Thanks in Advance.
    Best Regards,
    Joseph

    Hi
    I checked this works
    public void func(float sourceNumber)
              String targetNumber="";
              int size1=12;
              int size2=3;
              int numberOfDigits=0;
              int temp=(int)sourceNumber;
              int temp2=(int)sourceNumber;
              while(temp>0)
                   int digit=(int)temp%10;
                   numberOfDigits++;
                   temp=temp/10;
              String tempString=""+sourceNumber;
              String afterDecimal=tempString.substring(tempString.indexOf(".")+1,tempString.length());
              //to generate the target
              for(int i=0;i<size1-numberOfDigits;i++)
                   targetNumber=targetNumber.concat("0");
              targetNumber=targetNumber.concat(""+temp2);
              targetNumber=targetNumber.concat(afterDecimal);
              for(int i=0;i<size2-afterDecimal.length();i++)
                   targetNumber=targetNumber.concat("0");
              System.out.println(targetNumber);
    Let me know if you need any modifications.
    Thanks

  • Need to write start up scrits for weblogic admin server on Linux

    Hi,
    I am new to weblogic i have Installed wls1035 on Linux Created Managed servers,but i want write start up and stop scripts for weblogic admin server please let me know how to write.
    My weblogic server is Running on Linux..please help me its very urgent for me.....

    Put something like this into a startAll.py file (excluding the ---):
    startNodeManager(verbose='false',NodeManagerHome=localWlsHome + '/common/nodemanager',ListenPort=5556,ListenAddress=localhost)
    nmConnect('weblogic','password','localhost','5556','domain_name')
    nmStart('AdminServer','/path-to-domain-dir')     
    nmStart('my_server_1','/path-to-domain-dir')     
    nmStart('my_server_2','/path-to-domain-dir')     
    nmDisconnect()
    exit()
    source /path-to-domain-dir/bin/setDomainEnv.sh
    $JAVA_HOME/bin/java weblogic.WLST startAll.py
    Similar for stop (stopAll.py):
    nmConnect('weblogic','password','localhost','5556','domain_name')
    nmKill('my_server_1')     
    nmKill('my_server_2')     
    nmKill('AdminServer')
    stopNodeManager()
    exit()
    source /path-to-domain-dir/bin/setDomainEnv.sh
    $JAVA_HOME/bin/java weblogic.WLST stopAll.py
    You might have issues with the Nodemanager having an autogenerated username and password. That can be fixed like this:
    In the AdminServer console, click on Lock & Edit
    In the AdminServer console, go to <domain> -> Security -> General -> Advanced and update the Node Manager username and password to use the same values as the WebLogic server.
    In the AdminServer console, apply the changes.
    Start WLST: $WL_HOME/common/bin/wlst.sh
    Connect to the AdminServer: connect('weblogic','password','t3://<adminserver-hostname>:<adminserver-port>')
    Enroll: nmEnroll('/path-to-domain-dir')
    Exit WLST: CTRL^D
    You might also look into customizing the nodemanager's property file:
    Edit $WL_HOME/common/nodemanager/nodemanager.properties
    StopScriptEnabled=true
    CrashRecoveryEnabled=true
    StartScriptEnabled=true
    For further reading, please take a look at: http://docs.oracle.com/cd/E15051_01/wls/docs103/config_scripting/reference.html
    Edited by: 925121 on Apr 3, 2012 2:16 AM

  • PLSQL Block for Update Statement

    Oracle : 10.2.0.5
    update TEST.USER_PROFILEs c
    set c.uswin = (
    select a.uswin from TEST.GBL_USER_PROFILE a, test.user_profiles b
    where b.five_and_two=a.uswin
    where c.five_and_two in ( select e.uswin from TEST.GBL_USER_PROFILE e, test.user_profiles f
    where f.five_and_two=e.uswin )
    above query is throwing
    ORA-01427: single-row subquery returns more than one row that's because of my in clause.
    Looks like I have to write a block to update my user_profile table from GBL_USER_PROFILE. Any suggestiion ??

    It is completely unclear what are you trying to do, but looks like:
    update  TEST.USER_PROFILEs c
       set  c.uswin = (
                       select  a.uswin
                         from  TEST.GBL_USER_PROFILE a
                         where c.five_and_two=a.uswin
      where c.five_and_two in (
                               select  uswin
                                 from  TEST.GBL_USER_PROFILE
    /SY.

Maybe you are looking for

  • How do I transfer the music from my phone to my itunes on the computer?

    How do I transfer the music from my phone to my itunes on the computer?

  • Symbol to call back on the main timeline with Label?

    Hi, I have a symbol called Panel_1. When it slides out, I have a button inside to call out to Panel_2. I created Panel_2 on a main timeline (only 1 frame) using a Label called "Label_2". This code doesn't work with I click. sym.getComposition().getSt

  • Rsh hang when remote host halted

    Solaris 8 on a sunblade 100. Running an rsh command to a remote box hangs when the remote box is killed with halt -q. The rsh command used to illustrate the fault is: rsh -l username hostname sleep 30 Looking into this, it seems the ndd parameter tcp

  • CVS Patch Not Completely Working?

    Before installing the CVS patch for version 9.0.2.829, every CVS file was marked as out-of-sync. After installing it, most files are marked correctly, but there are some files that are tagged out-of-sync even though right-clicking and selecting "View

  • My iphone is getting switched off frequently

    Hello, My iphone 4 gets switched off randomly.Also I cant start the phone without attaching it to computer . And when I remove the cable it again gets swtiched off . Can anyone tell me what can be the problem ......