Executing a SQL Command in my bean class

Hello everyone,
I'm using JDeveloper 12.1.2.0.0.
I have an interest in executing a query in my bean method. I've done some research and i still got a code but it can't find the method that the method requires so i tried to added the query in my AppModule and i've added my method as a data control but how can i access it and modify it in my bean method?
The page with the code that doesn't find the method: http://jjzheng.blogspot.pt/2010/11/run-single-query-in-application-module.html
Which gives me: "Method 'getDBTransaction' not found"
The page that creates my method as a data control: http://amit-adf-work.blogspot.pt/2013/09/how-to-execute-sql-using-adf-application.html
Is any of this the right way? How can i execute a SQL Command in my bean class?
Regards,
Frederico.

This is the code I use
// GET A METHOD FROM PAGEDEF AND EXECUTE IT
// get the binding containe
BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
// get an Action or MethodAction
OperationBinding method = bindings.getOperationBinding("YourMethodAction");
// if there are parameters to set...
Map paramsMap = method.getParamsMap();
paramsMap.put("param","value")  ;    
// execute the method
method.execute();
List errors = method.getErrors();
if (!errors.isEmpty())
   // handle errors here errors is a list of exceptions!
// no error resume normal work
Timo

Similar Messages

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

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

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

  • Execute an sql command other than an select statement

    hello,
    is it possible to execute an sql-command other than a
    select statement in a report ?
    something like execute ... ?
    i want ro execute a statement BEFORE the select ...
    or is the one and only possible statement in a report
    a "select ?"
    greetings
    Thorsten Lorenz

    Hi ,
    You can always use the Report triggers to execute any other SQL commands . If you need to execute them before the SELECT statement of you Data Model query , then You can use the Parameter Form triggers / before Report Trigger. Be sure to put in a commit statement as well, if the result of the Select statement you intend to do depends on these SQL commands.
    Thanks
    Oracle Reports Team.

  • Security context issue when executing a SQL command in SQLCMD

    Simplified core issue below:
    I have myscript.sql that has:
    SELECT name FROM Sys.Databases
    GO
    USE mydatabase
    GO
    EXEC mystoredprocedure 'myparameter'
    GO
    When I open cmd.exe and use:
    SQLCMD -S localhost\myinstance -i script.sql
    It executes fine.
    When I open cmd.exe in C# using the Process class and execute the same command I get the following error:
    name
    master
    tempdb
    model
    msdb
    mydatabase
    (5 rows affected)
    Msg 916, Level 14, State 1, Server localhost\myinstance, Line 1
    The server principal "NT AUTHORITY\SYSTEM" is not able to access the database "mydatabase" under the current security context.
    Msg 2812, Level 16, State 62, Server localhost\myinstance, Line 1
    Could not find stored procedure 'mystoredprocedure'.
    And now the detailed explaination:
    I created an MSI which installs my custom application.
    During the bootstrap process, SQL Server 2012 Express is installed using the following parameters:
    /INSTANCEID="SQLEXPRESS"
    /ACTION="Install"
    /FEATURES=SQLEngine,Replication
    /HELP="False"
    /INDICATEPROGRESS="False"
    /Q="True"
    /QS="False"
    /ROLE="AllFeatures_WithDefaults"
    /ENU="True"
    /ERRORREPORTING="False"
    /SQMREPORTING=0
    /INSTANCENAME="SQLEXPRESS"
    /AGTSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE"
    /AGTSVCSTARTUPTYPE="Disabled"
    /ISSVCSTARTUPTYPE="Automatic"
    /ISSVCACCOUNT="NT AUTHORITY\NetworkService"
    /ASSVCSTARTUPTYPE="Automatic"
    /ASCOLLATION="Latin1_General_CI_AS"
    /ASDATADIR="Data"
    /ASBACKUPDIR="Backup"
    /ASTEMPDIR="Temp"
    /ASCONFIGDIR="Config"
    /ASPROVIDERMSOLAP="1"
    /SQLSVCSTARTUPTYPE="Automatic"
    /FILESTREAMLEVEL="0"
    /ENABLERANU="True"
    /SQLCOLLATION="SQL_Latin1_General_CP1_CI_AS"
    /SQLSVCACCOUNT="NT Authority\Network Service"
    /SECURITYMODE="SQL"
    /ADDCURRENTUSERASSQLADMIN="True"
    /RSSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE"
    /RSSVCSTARTUPTYPE="Automatic"
    /RSINSTALLMODE="FilesOnlyMode"
    /HIDECONSOLE
    /IACCEPTSQLSERVERLICENSETERMS
    /SAPWD="***************"
    The MSI then executes an Installer class DLL written in C# which restores a database to the SqlExpress instance.
    When the restore is completed, the Installer class then uses the Process class to launch CMD.exe and execute the SQL script using SQLCMD.
    Process vProcess = new Process();
    ProcessStartInfo vStartInfo = new ProcessStartInfo("cmd.exe");
    vStartInfo.Arguments = "/c set path=%path%;" + Context.Parameters["TargetDir"] + "\\; && sqlcmd -S LocalHost\\myinstance -i myscript.sql";
    vProcess.StartInfo = vStartInfo;
    vProcess.Start();
    vProcess.WaitForExit(30000);
    This is where I get the error mentioned above.
    However if I execute the same command manually by opening CMD.exe from the RUN command, it executes perfectly.
    I can not use -U or -P to supply a user / password, I MUST use integrated security.
    Additional info:
    Previously SQL Server 2008 Express has been in use for the bootstrapper, and this issue did not occur.
    The database the MSI restores is also built from SQL Server 2008. (Will be built from 2012 in the future.)
    Installation is performed on an account with administrative rights.
    Running the installer AS Administrator does not fix the issue.
    Any help would be greatly appreciated, as well please let me know if additional info is required.
    Thank you

    I'm having a similar issue where I'm using a batch file to execute commands to a group of servers. I can use the batch commands when updating MyDatabase but get the security context error when I try to update MyDatabase with a join to TheirDatabase except
    on servers where I am sysadmin.   Like I said, I can update MyDatabase as long as I don't join to TheirDatabase.
    Update A
    Set A.CCMCoderStaffSID = IsNull(B.StaffSID, -1)
    From MyDatabase.[R_Encounter].[VejdPfcsLinkageDataF19610x5] A
    Left Join ThierDatabase.Staff.Staff B on
    A.Sta3n = B.Sta3n and A.[CCMCoderF200IEN]= B.StaffIEN
    Error:
    Msg 916, Level 14, State 1, Server R04PHIDWH58, Line 1
    The server principal "MyDomain\ME" is not able to access the database "TheirDatabase" under the current security context.
    Line from batch:
    sqlcmd -S Server54 -d MyDatabase -i D:\ETLDevelopment\R04\Me\querytools\%RAWTablesScript%  -o D:\ETLDevelopment\R04\Me\UpdateSIDV1.txt

  • How do i get a output in CSV of a SQL query executed via SQL Command prompt

    Hi All,
    I have a question with reference to SQL command prompt. I have a sql query which runs properly and gives proper execution in SQL Management console in GUI.
    This report is used to pull the free disk space report of our servers
    As i want to schedule it as a report so i want to script it to run via SQL command prompt. I made the script and it works fine if i enter it in SQL command prompt. When i try to extract the output to a CSV File it fails. Below is the details of the command
    i am using to query to pull the data. Can anyone help me in getting the output of this query in SQL command prompt.
    sqlcmd -W -s , -S Servers FQDN
    use operationsmanager
    Go
    Query:"select Path, InstanceName, SampleValue 
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled" -s "," -o "C:\DataSqlCmd.csv"
    Go
    When i enter the command without the quotes when the query is starting and ending and also without the output command (-s "," -o "C:\DataSqlCmd.csv") it is working and shows the output in the command prompt. Below is the screen shot for
    your reference.
    Due to security reasons i have to erase the server names:
    But when i add the line to extract the output ( -s "," -o "C:\DataSqlCmd.csv") It gives me this error:
    The exact command would be:
    sqlcmd -W -s , -S CINMLVSCOM01.e2klab.ge.com
    use operationsmanager
    Go
    "select Path, InstanceName, SampleValue 
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled" -s "," -o "C:\DataSqlCmd.csv" -h-1
    Go
    saying the syntax is not correct or some thing as per the below screenshot.
    Can any one please help. Below is just the query whi i use to get the output in SQL management studio.
    Can any one make a command for the below quer so i can directly execute and test for getting the output.
    select Path, InstanceName, SampleValue 
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled
    Gautam.75801

    Can you try the below query?
    select Path, InstanceName, SampleValue
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < 20 and CounterName like '% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled
    -- replace the below query part in the below SQLCMD C:\>SQLCMD -S SERVERNAME -E -d operationsmanager -Q "select * from sys.databases ds with (nolock) where name='master'" -s "," -o "F:\PowerSQL\MyData.csv" -h -1
    SQLCMD -S SERVERNAME -E -d OperationsManager -Q "select Path, InstanceName, SampleValue
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled" -s "," -o "c:\MyData.csv" -h -1
    Refer for the other ways 
    http://dba.stackexchange.com/questions/23566/writing-select-result-to-a-csv-file
    --Prashanth

  • Is there a way to execute the SQL command in PLSQL block

    Hi all
    With reference to the above subject do you have any example.
    Thanks in advance.

    What sort of SQL command do you have in mind? DML can easily be wrapped in PL/SQL blocks. DDL requires the use of dynamic SQL such as EXECUTE IMMEDIATE.
    Cheers, APC

  • Executing a sql command from a menu item

    I am working on a forms migration from 4.5 to 10g.
    On 4.5, if I execute a sql using a sqlplus -s command, from a menu item, a window is opened showing the execution messages, if there were errors and it's details.
    It doens´t happen on 10g anymore. Is there any chance I can keep on 10g this functionality that used to work on 4.5 ??
    The procedure I use to execute the sql is:
    Menu item code:
    plus('sql_ name',null);
    Procedure:
    procedure plus(
    program in VARCHAR2, /* sql name*/
    parameters in VARCHAR2 /* aditional parameters */
    ) is
    V_USERNAME varchar2(100);
    V_PASSWORD varchar2(100);
    V_DATABASE varchar2(100);
    str varchar2(300);
    begin
    V_USERNAME := GET_APPLICATION_PROPERTY(USERNAME);
    V_PASSWORD := GET_APPLICATION_PROPERTY(PASSWORD);
    V_DATABASE := GET_APPLICATION_PROPERTY(CONNECT_STRING);
    str := V_USERNAME||'/'||V_PASSWORD||'@'||V_DATABASE;
    HOST ('sqlplus -s '||''''||str||''''||' @$PATH/'||program||' '||parameters);
    end;
    Tks a lot,

    Hello,
    With C/S versions, the Host() command execute on the machine that runs the Forms runtime, that is the client machine.
    With Web versions, Host() is also executed on the machine that runs the Forms runtime, that, this time is the application Server.
    Use the Client_Host() Webutil equivalent.
    Francois

  • Executing PL/SQL Commands.. Oracle API newbie

    Hi,
    I am using Oracle 10G and am calling stored procedures from my code written in C#.
    Currently I am getting the following error when the stored procedure is called:
    ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'SP_COURSE_GET' ORA-06550: line 1, column 7: PL/SQL: Statement ignored
    .. from a recent thread someone was able to point me in the right direction and suggest that the error was in the way I was calling the stored procedure
    Now that I have resolved the previous issue, I need to be able to add the additional two lines (lines 1 & 3) to my code so that the table is returned after executing the stored procedure
    var vrct refcursor // line 1
    exec sp_course_get(501,:vrct)
    print vrct // line 3
    My code currently looks like
    cmd.Connection = conn;
                        cmd.CommandText = sStoredProc;
                        cmd.CommandType = CommandType.StoredProcedure;
                        // add the parameters
                        int iNumParams = 0;
                        if (null!= arParams)
                             iNumParams = arParams.Length / 2; // divide by 2 b/c length is total # of items, not the # of rows
                             for (int i=0; i<iNumParams; i++)
                                       cmd.Parameters.Add(new OracleParameter(arParams[i,0].ToString(), arParams[i,1]));
                        // add the output param
                        OracleParameter output = null;
                        if (OracleType.Int32 == oType)
                             output = cmd.Parameters.Add(new OracleParameter(sOutputName, oType));
                        else
                             output = cmd.Parameters.Add(new OracleParameter(sOutputName, oType, size));
                        output.Direction = ParameterDirection.Output;
                        cmd.ExecuteNonQuery();
    Can an expert advise the best way for me to send the declaration of the cursor variable and the print command for the cursor to the database. At the moment I am just calling the stored procedure. Thank you in advance for your help
    Cheers

    > Does that look right or is there any easier way to pass the 3 lines thru to
    the database
    ie 1 var vrct refcursor
    2 exec sp_course_get(501,:vrct)
    3 print vrct
    The VRCT output variable needs to be a client cursor in the client language you're using. Simply put - when you define a variable in C/C++/C# and pass that to Oracle via a PL/SQL call, that variable has to match the data type that PL/SQL expects. And vice verse.
    Line 1 above:
    var vrct refcursor]
    ..is exactly that. The client "language" is SQL*Plus. A client variable is defined in the language. It is a client cursor (aka reference cursor). The output from PL/SQL (a reference cursor) can now be stored in the client variable. This client variable can now be used by the client to fetch rows from the cursor and display them - which is what the above SQL*Plus PRINT command does.
    Okay, so in .NET (which I assume you're using) you need to use the correct variables/parameters to set your local client variable equal to the output from PL/SQL ref cursor.
    [url http://download-east.oracle.com/docs/cd/B19306_01/win.102/b14307/featRefCursor.htm]Oracle® Data Provider for .NET Developer's Guide lists the following example:
    The following example demonstrate passing a REF CURSOR:
    connect scott/tiger@oracle
    create table test (col1 number);
    insert into test(col1) values (1);
    commit;
    create or replace package testPkg as type empCur is REF Cursor;
    end testPkg;
    create or replace procedure testSP(param1 IN testPkg.empCur, param2 OUT NUMBER)
    as
    begin
    FETCH param1 into param2;
    end;
    // C#
    using System;
    using Oracle.DataAccess.Client;
    using System.Data;
    class InRefCursorParameterSample
      static void Main()
        OracleConnection conn = new OracleConnection
          ("User Id=scott; Password=tiger; Data Source=oracle");
        conn.Open(); // Open the connection to the database
        // Command text for getting the REF Cursor as OUT parameter
        String cmdTxt1 = "begin open :1 for select col1 from test; end;";
        // Command text to pass the REF Cursor as IN parameter
        String cmdTxt2 = "begin testSP (:1, :2); end;";
        // Create the command object for executing cmdTxt1 and cmdTxt2
        OracleCommand cmd = new OracleCommand(cmdTxt1, conn);
        // Bind the Ref cursor to the PL/SQL stored procedure
        OracleParameter outRefPrm = cmd.Parameters.Add("outRefPrm",
          OracleDbType.RefCursor, DBNull.Value, ParameterDirection.Output);
        cmd.ExecuteNonQuery(); // Execute the anonymous PL/SQL block
        // Reset the command object to execute another anonymous PL/SQL block
        cmd.Parameters.Clear();
        cmd.CommandText = cmdTxt2;
        // REF Cursor obtained from previous execution is passed to this
        // procedure as IN parameter
        OracleParameter inRefPrm = cmd.Parameters.Add("inRefPrm",
          OracleDbType.RefCursor, outRefPrm.Value, ParameterDirection.Input);
        // Bind another Number parameter to get the REF Cursor column value
        OracleParameter outNumPrm = cmd.Parameters.Add("outNumPrm",
          OracleDbType.Int32, DBNull.Value, ParameterDirection.Output);
        cmd.ExecuteNonQuery(); //Execute the stored procedure
        // Display the out parameter value
        Console.WriteLine("out parameter is: " + outNumPrm.Value.ToString());
    }[url http://msdn2.microsoft.com/en-us/library/system.data.oracleclient.oracledatareader(vs.80).aspx]Microsoft Visual Studio 2005/.NET Framework 2.0 also shows some examples.
    Which kinds of beg the question why did you not refer to the appropriate OracleDataReader documentation up front? It would seem that these manuals cover interaction with Oracle pretty well, and includes sample code.

  • Executing one system command from one java class. ERROR. Please help me

    Hello i am trying to add users into one linux machine using one jaav program but when i execute the java class the system doesn't show me any error and dont make anything.
    The linux command, in the main of the class, is correct; from thelinux shell it runs well, but from the java class it doesn't run.
    Can you help me please?
    thanks
    import java.io.*;
    public class ejecutaUsuario {
    /** Creates a new instance of ejecutaUsuario */
    public ejecutaUsuario(String cmdline) {
    try {
    String line;
    Process p = Runtime.getRuntime().exec(cmdline);
    BufferedReader input =
    new BufferedReader
    (new InputStreamReader(p.getInputStream()));
    while ((line = input.readLine()) != null) {
    System.out.println(line);
    input.close();
    catch (Exception err) {
    err.printStackTrace();
    System.out.println(err);
    public static void main(String argv[]) {
    String passwd="hola";
    String usuarioInterno="xxxxxx";
    new ejecutaUsuario("/bin/sh useradd -p `openssl passwd -1 -salt 12345678 " + passwd + "` -d /home/" + usuarioInterno + " -m -s /bin/bash " + usuarioInterno);

    Try gettting the error input stream as well (getErrorStream()). Maybe you are getting output there.
    You might want to try just executing the 'useradd' part, getting the output stream of that process, and then put the parameters of useradd into the outputstream.
    Later
    Cardwell

  • Execute a sql command in a DOS batch file

    hi
    can anyone help let me know if there is any way to
    achieve this objective.
    objective is as below
    There will be a batch file run from a DOS prompt
    This will generate a CSV file for a SQL query
    and dump it on the local machine.
    thanks and regards
    Ashish

    hi Ashish,
    try using this
    at the command prompt:
    sqlplus username/password@connect_string @scriptfile
    and the contents of the scriptfile should be
    spool file.csv
    sql select statement;
    spool off
    exit
    HTH
    Naveen

  • Execute sql commands in browser

    I am using Oracle 10g standard edition in windows platform.
    I am getting SQL prompt , but I want to execute the SQL commands in the browser. But I can't find it.
    plz help me !!!

    You need to start the iSQL*Plus service. Check Starting the iSQL*Plus Application Server.

  • Unix OS /while executing SQL commands needs Error Log

    hai ,
    I am accessing the Development Server. While executing the SQL commands I need to log the errors. (like Spool in Windows )
    Same way , i want to log the error on Unix Environment.
    Thanks In Advance.
    Anzy

    Spool is a SQL*Plus command, just use it and you'll get your log.

  • Call/execute PL/SQL

    Dear friend
    I'd like call(execute) pl/sql command like alter system kill session 'session-id,session-serial' when press a button in my ADF (11g).
    How can I do that?
    Thanks

    The following messages appear in : Debugging: Embedded OC4J Server Log
    oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator handleError
    SEVERE: Server Exception during PPR, #1
    javax.servlet.ServletException: JBO-25302: Component object VOnlieUsersImpl_112 has no parent
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.webcache.adf.filter.PageCachingFilter.doFilter(PageCachingFilter.java:274)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:171)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilter(SharedLibraryFilter.java:137)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:285)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:285)
         at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter.java:76)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:285)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:209)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:166)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:617)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:889)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:797)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:607)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:376)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:161)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:142)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.jbo.InvalidOwnerException: JBO-25302: Component object VOnlieUsersImpl_112 has no parent
         at oracle.jbo.server.ComponentObjectImpl.getRootApplicationModule(ComponentObjectImpl.java:162)
         at oracle.jbo.server.ViewObjectImpl.getDBTransaction(ViewObjectImpl.java:2354)
         at model.VOnlieUsersImpl.killSession(VOnlieUsersImpl.java:136)
         at test1.gettest1(test1.java:42)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1213)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.rich.nav.RichCommandMenuItem.broadcast(RichCommandMenuItem.java:209)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:61)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:173)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:65)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:61)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:173)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:65)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$GrabEvents.broadcastEvents(LifecycleImpl.java:908)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:232)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:140)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
         ... 27 more

  • ODBC - SQL command on connect

    Does anyone knows if is possible to execute a sql command when the connection with the database is done.
    For example: set alter session or set role.
    Thanks.

    You can define a login trigger in the database that will do this whenever a particular user logs in.
    Justin

  • How to: execute operating system commands from PL/SQL

    System: IBM pSeries AIX
    Oracle: 11g Enterprise
    Is there a quick way to execute operating system commands from PL/SQL?
    Without creating a JAVA class....
    I need to execute a Loader script.
    I want to do this from within PL/SQL.
    I need to to do 4 things.
    Three require SQL scripts.
    The fourth is SQL*Loader.
    The usual way is with a UNIX script calling 3 SQL scripts and one Loader control file.
    Is there way to do all this from within ONE PL/SQL SCRIPT ??
    Just let me know.

    Is there a quick way to execute operating system commands from PL/SQL?
    NO
    Without creating a JAVA class....
    I need to execute a Loader script.
    I want to do this from within PL/SQL.
    WHY ON EARTH, such action will create a new connection and become a resource hog?
    I need to to do 4 things.
    Three require SQL scripts.
    The fourth is SQL*Loader.
    The usual way is with a UNIX script calling 3 SQL scripts and one Loader control file.
    Which is perfect for the purpose.
    Is there way to do all this from within ONE PL/SQL SCRIPT ??
    Just let me know.
    NO, there is NOT. Nor should there be. Why create unstable ineffcient Mickey Mouse systems, glued together by hacking?
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • Help needed in sql

    Hi, I am getting the filename as below and i want to extract some part of the string with the filename and the output need as below FileName : THE_PK_SOURCE_CLASS0002_PKID5403_20130603_342342.txt  Output: ====== 5403-THE_PK_SOURCE_CLASS0002_PKID5403

  • Total value is wrong in main node (hierarchy)

    Dear experts, In the reports the value displayed for the total is wrong in the hierarchy, it is not the sum of the child nodes values: ex: If Germany has 2 company codes DE01 and DE02, and the value of no. of customers for DE01 is 500 and for DE02 is

  • How to make entriesinto table with out first field not edited

    hi everyone, I'm new to SAP ,the task provided to me is to display the data in the display fields when the particular cell in table is selected at the same time a button is provided make new entries into the table by clicking a button but when iclick

  • Why can't I sign in FaceTime and imesseges

    Hi , I want to ask why can't I sign in FaceTime and imesseges in my new ipad using my apple ID they are telling me that the email or password are wrong but I am sure that they are the right ones because I am been using this apple ID downloading thing

  • MPlayerX isn't work in Mavericks

    Hi everyone, MPlayerX isn't work in Mavericks, do you know how to fix it? Thanks