DBMS_JAVA Permissions & Host Procedure Errors

I have a package which calls a procedure "Host" (all source below) to execute a command.
Everything was working fine, except I was't able to see the DBMS_output results.
So, I tried to get the DBMS_Java.Set_output to working by playing with the dbms_Java.Grant_permission
which now have caused my "Host" to no longer work anymore. I see get a message "The handle is invalid."
Below are the 3 Grant Permission statements I issued with a specific user "LIB" as was logged in as,
I believe somehow stepped on the Sys priveleges or something.
Any clue help what I did and how to revoke / regrant the persmission?
Also how to get the output to appear?
Code from Package:
               DBMS_JAVA.SET_OUTPUT(100000);
               Host(xcopy/y "y:\file1.DAT" "y:\File1\");
Commands I issued:
Exec dbms_java.grant_permission('LIB', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
Exec dbms_java.grant_permission('LIB', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
Exec dbms_java.grant_permission('LIB', 'SYS:java.io.FilePermission','*', 'execute');
CREATE OR REPLACE PROCEDURE host (p_command IN VARCHAR2)
AS LANGUAGE JAVA
NAME 'Host.executeCommand (java.lang.String)';
create or replace and compile java source named host as
import java.io.*;
public class Host {
public static void executeCommand(String command) {
try { String[] finalCommand;
if (System.getProperty("os.name").toLowerCase().indexOf("windows") != -1) {
finalCommand = new String[4];
finalCommand[0] = "C:\\winnt\\system32\\cmd.exe";
finalCommand[1] = "/y";
finalCommand[2] = "/c";
finalCommand[3] = command;
} else {            // Linux or Unix System
finalCommand = new String[3];
finalCommand[0] = "/bin/ksh";
finalCommand[1] = "-c";
finalCommand[2] = command; }
// Execute the command...
final Process pr = Runtime.getRuntime().exec(finalCommand);
// Capture output from STDOUT...
BufferedReader br_in = null;
try {
br_in = new BufferedReader(new InputStreamReader(pr.getInputStream()));
String buff = null;
while ((buff = br_in.readLine()) != null) {
System.out.println("stdout: " + buff);
try {Thread.sleep(100); } catch(Exception e) {} }
br_in.close();
} catch (IOException ioe) {
System.out.println("Error printing process output.");
ioe.printStackTrace();
} finally { try {  br_in.close(); } catch (Exception ex) {} }
// Capture output from STDERR...
BufferedReader br_err = null;
try { br_err = new BufferedReader(new InputStreamReader(pr.getErrorStream()));
String buff = null;
while ((buff = br_err.readLine()) != null) {
System.out.println("stderr: " + buff);
try {Thread.sleep(100); } catch(Exception e) {}}
br_err.close();
} catch (IOException ioe) { System.out.println("Error printing execution errors.");
ioe.printStackTrace();
} finally { try { br_err.close();
} catch (Exception ex) {} } }
catch (Exception ex) {  System.out.println(ex.getLocalizedMessage());    } }};

Hi Kabeer,
This is not permission issue problem, because you receive NULL pointer exception. If, database user doesn't have access to the network java.security.AccessControlException is thrown.
I think, that you have not executed:
call sdo_mvclient.createmapviewerclient(
'http://www.mycorp.com:8888/mapviewer/omserver') ;
in the database session, before using PL/SQL MapViewer API. And, if you really have not executed this, then you will receive null pointer exception, because there is no information about remote MapViewer service in the database session.
You should follow the steps described in Section 6.2 of MapViewer 11EA1 User Guide. 6.2.1 - network access, 6.2.2 - MapViewer handle declaration (session scope).
I have deployed mvclient.jar and successfully using remote MapViewer service. Database and Mapviewer are on the different machines and network.
So, I think your problem is, that you have not declared address of remote MapViewer server in the session. According to documentation it should be declared for each session.
Regards,
Andrejus

Similar Messages

  • "Network host busy" error

    Hi, everyone. I have trawled this discussion list and followed all the advice available to no avail. Any help would certainly be appreciated.
    The background is as follows:
    MacBook Pro, 2.33GHz Intel Core 2 duo, 2GB RAM, currently running OSX 10.6.2. Software up to date. Previously on OSX 10.4.11 until 4 weeks ago. Printing to a networked HP 4100 with a fixed IP address in the office worked fine until last week, when a "Network host busy error, trying again in 30 seconds" error arose. Printing from the other workstations (iMacs on 10.6.2) on the network continues to proceed normally. Steps I have taken include deleting the HP4100 print queue and re-installing (several times) as IP>HPJetDirect socket to 192.168.1.100. Clearly the printer is online (it says so) and is identified as the correct printer driver is selected automatically (HP LaserJet 4100 series v 3010.107) and all the configurable options are correctly selected (trays 2,3 & 4, envelope feeder and duplex option) and toner supply levels are correctly read. Still get network host busy error. Rebooted the printer. No avail. Rebooted the router. No avail. Reinstalled HP printer drivers from here: http://support.apple.com/downloads/#printer%20drivers%20mac%20os%20x%20v10.6. No avail. Have also reset the printing system (losing all the other print queues in the process!) to no avail. Checked the printer setup on the iMacs that can print, and it is identical to that which I am attempting to install. Have I missed something? Anyone with any clues, please?

    Hi there,
    If you have your HP printer queue configured exactly the same as other Mac's that are working fine, and with all the steps you have taken thus far, then I can only suggest that you either have a network issue or something blocking the path.
    So first thing is to check that you are set to the same subnet as the other Mac's. This can be confirmed via the Network Utility under the Info pane. You may have to change the drop menu from Ethernet (en0) to Airport (en1) depending on what you use. Typically the first three sets of numbers of your IP address is your subnet, while the last number is your network address. So, based on the printers address of 192.168.1.100, your Mac should have a subnet of 192.168.1 and a network address other than 100.
    If the IP address for your Mac is set to the same subnet as the HP then while Network Utility is still open, select the Ping tab, enter the IP address of 192.168.1.100, set the number of Pings to 4 and press the Ping button. You should get a response from the printer.
    If you do get a response then it is safe to assume that the network setup on your Mac is okay. At this stage I would check that your Firewall is disabled (located in System Preferences > Security).
    If the firewall is not enabled then my last suggestion is to create another printer queue to the HP, this time selecting IP > LPD for the protocol. Since HP wrote Socket then it is odd that it would not be working, but a network host busy would indicate that the Mac cannot either communicate with the IP address or the Port of the selected IP address. By changing the protocol from HP Socket to LPD you are basically setting the Mac to connect on port 515 instead of 9100.
    Note that if the other Mac's show the print queue URL as "socket://192.168.1.100/" then they are using HP Jetdirect also so it would make no sense that your connection to the same port would fail. But it can't hurt trying an alternate protocol when you have tried everything else...
    HTH and reply if needed.
    Pahu

  • How I fixed the 'network host busy" error

    I've been down for a day solving the "network host busy' error.
    First, I had fits trying to hook up this HP to my system. Here's the thread on that:
    http://forums.techguy.org/networking/858081-laserjet-4500-mac-osx-10-a.html
    Once all that was done, it was working.
    The system was off and sometimes unplugged over the course of the evening.
    I could not get it to work again.
    It turned out that somehow during the course of events, the ip number of the printer had changed. I printed out the configuration page directly from the printer's configuration menu, and reset the ip address to match the new one.
    Protocol in this case was HP Jet Direct socket.
    Hope that helps someone out there. It looks like there are a lot of people tearing their hair out over this message and that there is no one solution.

    I just found a solution to this problem and thought I would post it here, too.
    I'm using a HP Photosmart C7280 with 10.6.1
    Ever since updating to Snow Leopard, I kept receiving the "Network host busy" message. Today, I thought I would try running the network wizard feature on the printer itself, and after the printer connected to my router and I entered the password, the problem fixed itself. No more error message.
    I'm not sure if this will work for everyone, but it did for me. Such an easy solution for such a headache-inducing problem.
    Message was edited by: TNTWhite

  • No route to host:connect -- error in the struts-config.xml file

    hi all,
    acutally am doing a struts application in that i have written everything properly
    but getting this kinda no route to host:connect error
    my struts-config.xml file is like this...
    <struts-config>
    <form-beans>
    <form-bean name="myForm" type="MyForm">
    </form-beans>
    <action-mappings>
    <action path="/action"
                   name="myForm"
                   type="MyAction"
                   scope="request"
                   validate="true" >
                   <forward name="success" path="/success.jsp" />
                   <forward name="failure" path="/failure.jsp" />
         </action>
    </action-mappings>
    </struts-config>
    sikandar 

    Hi Lee,
    I am working on Oracle ADF 10.1.2 and getting the same problem. The lines in my struts-config.xml are as below:
    <action path="/unitsView" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.UnitsViewAction" name="DataForm" parameter="/unitsView.uix" unknown="false">
    <set-property property="modelReference" value="unitsViewUIModel"/>
    <forward name="unitsEditLink" path="/unitsEdit.do"/>
    </action>
    <action path="/unitsView" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.UnitsViewAction" name="DataForm" parameter="/unitsView.uix" unknown="false">
    <set-property property="modelReference" value="unitsViewUIModel"/>
    <forward name="unitsCreateLink" path="/unitsCreate.do"/>
    </action>
    I have two lines with [action path="/unitsView"]. The reason why is that I want the user to go to the form create screen for the create button and form edit screen for the edit button. If this does not work, it seems to mean that only a single screen can be used for create/edit functions. However, the ADF editor diagram looks perfectly to point to create.uix and edit.uix respectively.
    Please shed some light.
    Thanks,
    Regards,
    Michael

  • Database procedure error

    Hi everyone,
    I have form which has two database procedures in key commit trigger. If any error occurs while executing the second database procedure
    I dont want to save the form and first database procedure values. Can anyone please tell me how to pass the database procedure error to
    form so that it can stop the saving of form and first database procedure .
    Thanks in advance for any reply.

    Dear all,
    Thanks for your kind reply.
    I have tried using DBMS_ERROR_CODE in ON-ERROR trigger. My code appears like this.
    create or replace procedure_name(parmeters) as --- This is a database procedure;
    begin
    procedure_body;
    exception
    when others then
    Raise_application_error(-20025,'Error Message');
    end;
    In form in ON_ERROR trigger I have declared like this:
    IF DBMS_ERROR_CODE = -20025 THEN      
    MESG('Error in Insertion');
    Raise form_trigger_failure;
    END IF;
    I am not getting error message that I declared in ON_ERROR trigger instead I am getting error message from raise_application_error statement.
    Could anyone please guide me exactly how to catch the database procedure in form level so that I can stop exceution of the form.

  • Failed: 4x Host[hostname] error: NewMovieFromFile Failed -2048  Help please

    I have seen a lot of talk about this error but none of it really applies to my situation.
    Failed: 4x Host[hostname] error: NewMovieFromFile Failed -2048
    I am compression a large number on video files most of them are media100 or mpeg4 or mpeg2. Most of the files work just fine but a few of them just won't work. I get the same error each time just on a different Mac.
    I have a managed cluster setup with 5 G5s. I have 1 mac control all the others and the files are submitted from one of the other machines in the cluster. If I submit the files to the single machine they work fine but when I submit them to the cluster I get this error. The hostname will change each time but the error is the same.
    All of the macs can view the files and play them fine. Someone mention QT Pro. I tried adding that to a few of them but I got the same problem. It seems that there is just something about the files that it doesn't like.
    Any ideas.
    Ken

    I've seen this error when our Xsan was configured for high data transfers. Turns out there the san was corrupting the segments, and the nodes couldn't read the segments and assemble the files. Only the node that wrote the segment could read it. After talking with Shake support, turned out setting the san to default settings fixed it.

  • HOST Failed errors with multi-core processing in Compressor

    I used Digital Rebellion's Pref Mgr to trash all prefs; then Compressor Repair to fix them.  Rebooted.  Stopped Qmaster.  Reset services.  Established 5 instances ( I have 8 core Xeon 2.8ghz Mac Pro ).  Restarted Qmaster sharing.  Opened FCP file, sent to Compressor.  Selected DVD settings.  Chose cluster I set up in Qmaster.  Submitted. Instant "HOST Failed" error messages on the five instances that appeared in Batch Monitor.
    Help.  Tired.  Frustrated.  ******.

    If you really are running 10.6.2, I'd start by running all software updates.
    See what happens if you export a 5 minute section of your movie, export that as a master file and bring that movie into a new Compressor job,
    Post a screen shot of the Computer Sharing settings window to see whether anyone can spot something amiss.
    Russ

  • Local host & DC error during NW04s trial installation

    Hi everybody!
    I am trying to install SAPNW2004sJavaSP9_Trial with setup.bat as well as the sapinst.exe file of SAP_NetWeaver_2004s_SR_1_Installation_Master_DVD__ID__NW05SR1_IM1. I tried it both with Domain user (with all the local administrator rights assigned like 'Act as part of OS' and 'Replace a process level token') as well as the local 'Administrator' account. The installation always stops when I select Next after selecting JCE policy file with the following Warnings and Errors log:
    WARNING 2008-03-12 09:40:46
    The install parameter INSTPARA_DB is already defined (existing value IND, new value ADA ).
    WARNING 2008-03-12 09:44:01
    Error 5 (Access is denied.
    ) in execution of a 'RegOpenKeyEx' function, line (69), with parameter (SYSTEM\CurrentControlSet\Services\McAfeeFramework).
    WARNING 2008-03-12 09:44:01
    The subkey 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\McAfeeFramework' does not exist on the 'localhost' host.
    ERROR 2008-03-12 09:44:01
    MOS-01185  The subkey 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\McAfeeFramework' does not exist on the 'localhost' host.
    ERROR 2008-03-12 09:44:01
    FCO-00011  The step collect with step key |NW_Java_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_GetSidNoProfiles|ind|ind|ind|ind|1|0|collect was executed with status ERROR .
    Does anybody have any clue with this issue?
    Suitable points await for corrective answer.
    Regards,
    AQ

    I resolved the issue myself. Actually it was McAfee virus scan whose services were not being disabled properly which was in conflict...

  • Calling the Java Method in PL/SQL Java Stored procedure errors out

    Hi,
    I could not find a suitable thread to post my PL/SQL question so iam posting it here.........
    I have written a java class by name XYZ which has a method ABC for which there are 9 arguements being passed and its a VOID method.
    This java class has been loaded into ORACLE using DBMS_JAVA.LOADJAVA pkg, Now this class is being called in the oracle as a JAVA Stored procedure...... When ever im trying to call the procedure it throws the following error
    ORA-29531: no method
    *Cause:    An attempt was made to execute a non-existent method in a
    Java class.
    *Action:   Adjust the call or create the specified method.
    The code snippet as follows
    JAVA CODE:
    Class xyz
    public static void Abc (String hostName,
    int port,
    String serviceURL,
    String soapAction,
    int timeOut,
    String wsUser,
    String wsPasWd,
    String keyStore,
    String keyStorePasWd)
    //method implementation
    JAVA STORED PROCEDURE:
    create OR REPLACE procedure ABC_JAVA_SP_CALL
    (p_hostname in varchar2, p_port in number, p_serviceurl in varchar2, p_soapaction in varchar2, p_timeout in number, p_wsuser in varchar2, p_wspasswd in varchar2, p_ks_path in varchar2, p_ks_passwd in varchar2)
    as
    language java
    name 'xyz.Abc(java.lang.String, int, java.lang.String, java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String)';
    When i try to call
    declare
    p_hostname varchar2(100);
    p_port number;
    p_serviceurl varchar2(100);
    p_soapaction varchar2(100);
    p_timeout number;
    p_wsuser varchar2(100);
    p_wspasswd varchar2(100);
    p_ks_path varchar2(100);
    p_ks_passwd varchar2(100);
    begin
    //SP which returns the values for the required parameters.
    comppkg.getvcsinfo(
    p_hostname,
    p_port ,
    p_serviceurl,
    p_soapaction,
    p_timeout,
    p_wsuser,
    p_wspasswd,
    p_ks_path,
    p_ks_passwd
    Layer7_icengc_ws_tes(p_hostname,
    p_port ,
    p_serviceurl,
    p_soapaction,
    p_timeout,
    p_wsuser,
    p_wspasswd,
    p_ks_path,
    p_ks_passwd);
    end;
    This thing ends up with
    29531. 00000 - "no method %s in class %s"
    *Cause:    An attempt was made to execute a non-existent method in a
    Java class.
    *Action:   Adjust the call or create the specified method.
    Im not understanding what wrong am i doing
    pls help
    Edited by: madhusudan on Feb 12, 2013 8:07 PM

    Hello,
    there is the forum {forum:id=65} for questions about using Java within Oracle.
    Regards
    Marcus
    Edited by: Marwim on 13.02.2013 07:56
    I could not find a suitable thread to post my PL/SQL question so iam posting it here.........You got the hint to the correct forum alread in another thread {message:id=10837976}
    And if you think this is not related to Java but PL/SQL, then you should ask in {forum:id=75}

  • Webutil Host bean error

    I'm trying to use the webutil.nonblocking procedure, i followed all the steps in the user guide to install the webutil and i attached the library to the form and subclassed the object group, but when running the form i receive this error
    oracle.forms.webutil.host.Host bean not found.Webutil_host.execute will not work
    can anybody help
    regards
    lilian

    Problem solved ..
    check for the following
    1- make sure the virtual path in the orion-xml file is correctly set.
    2-make sure that the signature of the jacob,jar and frmwebutil.jar is successfully done.
    3- check the WebArchive entry is correctly set
    hope this will help ..
    Regards
    Lilian

  • Bea type 4 db2 driver-stored procedure error

    Iam creating a connection pool in weblogic 9.2 MP2
    using bea type 4 db2 driver and excuting a stored procedure.Iam getting following error
    I enabled spy
    spy(2008/02/13 09:41:58.050)>> Driver Name = DB2
    spy(2008/02/13 09:41:58.050)>> Driver Version = 3.60.24 (023731.010811.022315)
    spy(2008/02/13 09:41:58.050)>> Database Name = DB2/MVS
    spy(2008/02/13 09:41:58.050)>> Database Version = 8.1.5
    spy(2008/02/13 09:44:11.063)>> java.sql.SQLException: [BEA][DB2 JDBC Driver][DB2]UNACCEPTABLE SQL STATEMENT ErrorCode=-84 SQL
    State=42612
    The code is using
    CALL SP03 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
    as follows
    String sql = "CALL SP03 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
    myCallableStmt = con.prepareCall(sql);
    is ther are any issues in calling stored procedure with type 4 bea db2 driver.
    connectrion pool details
    jdbc:bea:db2://server:447
    weblogic.jdbc.db2.DB2Driver
    user=user
    LocationName=server
    portNumber=447
    serverName=host
    batchPerformanceWorkaround=true
    The code is working fine with type 2 ibm driver connection pool
    Also Iam trying with ibm type 4 driver
    Iam getting following error in configuration itself
    <Feb 13, 2008 11:18:44 AM EST> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM
    abc.xy_def" set up for pool "DataSourceIBM" failed with exception: "com.ibm.db2.jcc.a.SqlException: DB2 SQL error: SQLCODE: -725,
    SQLSTATE: 42721, SQLERRMC: CLIENT APPLNAME;server".>
    details
    jdbc:db2://mvsavt1_vipa.corpny.csfb.com:447/server
    com.ibm.db2.jcc.DB2Driver
    user=user
    locationName=server
    portNumber=450
    drivertype=4
    Any configuration required at db2 server

    Ok, Odd. Please email this post (the code below) and the
    output of each to [email protected] and ask them to investigate
    why one driver finds the procedure and the other doesn't.
    This will get back to me officially, and then I will be able
    to enlist all the resources to debug it. Is the stored
    procedure owned by the same schema as your 'user'?
    Mohamed Rabbani P M wrote:
    Joe,
    It is the same code you gave
    BEA Driver Code
    import java.io.*;
    import java.util.*;
    import java.net.*;
    import java.sql.*;
    import weblogic.common.*;
    public class dddb2
    public static void main(String argv[])
    throws Exception
    Connection c = null;
    try
    java.util.Properties props = new java.util.Properties();
    Driver d = (Driver)Class.forName("weblogic.jdbc.db2.DB2Driver").newInstance();
    props.put("user", "user");
    props.put("password", "password");
    props.put("locationName", "dbserver");
    String URL = "jdbc:bea:db2://dbhost:447";
    c = d.connect(URL, props);
    DatabaseMetaData dm = c.getMetaData();
    System.out.println(dm.getDriverVersion());
    System.out.println("Database version is " + dm.getDatabaseProductVersion() );
    CallableStatement p = c.prepareCall("{ CALL SP03 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) }");
    p.setInt(1,1234);
    p.setString(2,"XYZ");
    p.setString(3,"XYZ");
    p.setInt(5,1234);
    p.setString(6,"");
    p.setString(7,"XYZ");
    p.setString(9,"XYZ");
    p.setString(12,"XYZ");
    p.registerOutParameter(4,Types.INTEGER);
    p.registerOutParameter(8,Types.INTEGER);
    p.registerOutParameter(10,Types.INTEGER);
    p.registerOutParameter(11,Types.INTEGER);
    p.registerOutParameter(13,Types.INTEGER);
    p.setFetchSize(3);
    p.execute();
    catch (Exception e)
    { e.printStackTrace(); }
    finally
    { try {c.close();}catch (Exception e){} }
    IBM Driver Code
    import java.io.*;
    import java.util.*;
    import java.net.*;
    import java.sql.*;
    import weblogic.common.*;
    public class dddb2ibm
    public static void main(String argv[])
    throws Exception
    Connection c = null;
    try
    java.util.Properties props = new java.util.Properties();
    Driver d = (Driver)Class.forName("com.ibm.db2.jcc.DB2Driver").newInstance();
    props.put("user", "user");
    props.put("password", "password");
    //props.put("databaseName", "dbserver");
    String URL = "jdbc:db2://dbhost:447/dbserver";
    c = d.connect(URL, props);
    DatabaseMetaData dm = c.getMetaData();
    System.out.println(dm.getDriverVersion());
    System.out.println("Database version is " + dm.getDatabaseProductVersion() );
    CallableStatement p = c.prepareCall("{ CALL SP03 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) }");
    p.setInt(1,1234);
    p.setString(2,"XYZ");
    p.setString(3,"XYZ");
    p.setInt(5,1234);
    p.setString(6,"");
    p.setString(7,"XYZ");
    p.setString(9,"XYZ");
    p.setString(12,"XYZ");
    p.registerOutParameter(4,Types.INTEGER);
    p.registerOutParameter(8,Types.INTEGER);
    p.registerOutParameter(10,Types.INTEGER);
    p.registerOutParameter(11,Types.INTEGER);
    p.registerOutParameter(13,Types.INTEGER);
    p.setFetchSize(3);
    p.execute();
    catch (Exception e)
    { e.printStackTrace(); }
    finally
    { try {c.close();}catch (Exception e){} }

  • External Procedure Error: Ora-28575

    We are trying to set up external procedures in an HP/UX environment. However, we can not seem to get past the following error:
    ORA-28575: unable to open RPC connection to external procedure agent
    The following is our TNSNAMES.ORA set up:
    EXTPROC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = extproc_key))
    (CONNECT_DATA =
    (SID = extproc_agent)
    The following is the listener.ora setup:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ssi2)(PORT = 1521))
    (PROTOCOL_STACK =
    (PRESENTATION = TTC)
    (SESSION = NS)
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = extproc_key))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = SDST.world)
    (ORACLE_HOME = /u001/app/oracle/product/SDST)
    (SID_NAME = SDST)
    (SID_DESC =
    (SID_NAME = extproc_agent)
    (ORACLE_HOME = /u001/app/oracle/product/SDST)
    (PROGRAM = extproc)
    The following is the SQLNET.ORA setup:
    SQLNET.EXPIRE_TIME = 0
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    Does anyone have any ideas/help??? We're stuck. Thanks!

    Hi,
    I guess, it is happening in connection point only. Other wise It will give another error "RPC lost connection".
    I will give some tips.
    1.".so" path should match with oracle library path. For this one, u can query ur system tables and verify.
    2. When u create external procedure, be careful. Especially, when u give name of procedure and library. Pls. check this particular part.
    Pls. let me know the progress. U can directly contact me through the mails.
    With regards,
    Boby Jose Thekkanath,
    Dharma computers(P) Ltd.,
    Bangalore-India.
    www.dharma.com
    null

  • Customizing a Create Database Deployment Procedure Error

    I'm trying to set up a DbaaS, as it's part of the training I'm undergoing in Oracle in Caracas, Venezuela.
    In a topic, of the same title, I was asked to "please post your questions to internal forum. Please check out http://em.us.oracle.com/pls/htmldb/f?p=120:266:88354713473366::NO:::" because "It appears that you are an Oracle employee" and shortly after, my thread was closed, I am not a Oracle Employee, I do not have access to this internal forum, my supervisor has, not me, and my supervisor has denied my plea to get this issue posted on the internal forums or MOS, mostly because its just training and it has nothing to do with a client, I'd appreciate feedback instead of offtopic comments, getting my thread closed will certainly not get me any answers.
    I've managed to set up my zone, install the software, configure it and everything is running smoothly, until now. I've been following this cookbook and the information on the documentation for EM12c and I ran across this little issue which, seems like, no one in the office seems to have ever gotten (makes sense, considering I'm the only one who's actually managed to install the EM12 in the laboratory, and the only one who was assigned with the DbaaS). Running on a Solaris 11 SPARC zone.
    If you check the page 22 on the cookbook (linked above) I have to launch the "Create Oracle Database" deployment procedure, after this, the wizard asks me to select the version (11.0.2.1.0) and lock it, also have to tell the wizards its a single instance, after this I select the host and the ORACLE_HOME where the db files are installed. Once I do that and try to go for NEXT, I get the following error:
    User "oracle" is not the owner of Oracle Home "/oracle/app/oracle/product/11.2.0/dbhome_1" on target "dbaas"
    and I'm not able to continue setting up my DbaaS. One of the trainees thought it was a good idea to, from /, use chown -R /oracle oracle:oinstall to see if that would fix the error, sadly he was mistaken, after this, the wizard told me I had to run the root.sh from the Agent Home, there are 3 folders that must be owned by root and once I ran the root.sh I still got the same error. I have no idea if there are any logs I can check about this, if they are needed, It'd be nice of you to tell me where I can find them.
    Another thing I tried, was using the Create Like... option, make a copy of the "Create Oracle Database" and edit the error handling in the procedure steps by selecting Continue On Error, but I can't. Trying to select Continue On Error justs brings Stop On Error again.
    I also had this problem before:
    Can't locate db/dbclone/clone_util.pl in @INC (@INC contains: /u01/app/oracle/product/12.1.0.1/agent/core/12.1.0.1.0/perl/lib/5.10.0/x86_64-linux-thread-multi /u01/app/oracle/product/12.1.0.1/agent/core/12.1.0.1.0/perl/lib/5.10.0 /u01/app/oracle/product/12.1.0.1/agent/core/12.1.0.1.0/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi /u01/app/oracle/product/12.1.0.1/agent/core/12.1.0.1.0/perl/lib/site_perl/5.10.0 /u01/app/oracle/product/12.1.0.1/agent/core/12.1.0.1.0/perl/lib/5.10.0/x86_64-linux-thread-multi /u01/app/oracle/product/12.1.0.1/agent/core/12.1.0.1.0/perl/lib/5.10.0/x86_64-linux-thread-multi /u01/app/oracle/product/12.1.0.1/agent/core/12.1.0.1.0/perl/lib/5.10.0 /u01/app/oracle/product/12.1.0.1/agent/core/12.1.0.1.0/perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi /u01/app/oracle/product/12.1.0.1/agent/core/12.1.0.1.0/perl/lib/site_perl/5.10.0 /u01/app/oracle/product/12.1.0.1/agent/core/12.1.0.1.0/perl/lib/site_perl .) at - line 1
    Luckily my supervisor told me he went in to the MOS website (website I can't visit, but my supervisor can) and found a way around it, he simply told me to edit the Privilege Delegation to: /usr/bin/sudo -E -u %RUNAS% %COMMAND%, but he wasn't able to find any feedback on the error I posted before, I'd just like to know if this two errors are related, maybe there's something we missed.
    Thank you very much beforehand, this would really help me with my training. Also, please bear with me, I'm currently in the first semester of Computer Science and I had absolutely no experience or any knowledge on installing/configuring/running Oracle products and what I would call "advanced" UNIX handling (because apache server and mysql isn't really rocket science) until 3 weeks ago.
    Regards,
    Daniel.

    you should not have run chown -R for oracle software. where was your agent installed ?
    was that also installed on /oracle ? by what OS account it was installed . if it was oracle, you did the right thing by running root.sh as root.
    however rdbms s/w could still be in mess. can you please restore it to its original owner/permission. and then when launching the "Create Oracle Database" deployment procedure, use original owner (of rdbms s/w) credentials to continue.
    for setting up DBaaS, you must NOT use "Create Like".

  • Execute procedure error (Native SQL)

    Hi experts,
    I create a procedure
      EXEC SQL.
        create or replace procedure update_zsmadiprinc
        is begin
                              ( p_codigo         in  number(5),
                                p_ano            in  varchar2(4),
                                p_doc_vlr_princ in  varchar2(10)
                                p_subrc       out number ) is begin
          update T_INTERF_RESSARC_FORNEC_R3
          set   ano_doc              = p_ano,
                NUM_DOC_VALOR_PRINC  = p_doc_vlr_princ,
          where cod_interf_ressarc_fornec_r3 = p_codigo;
          if sql%found then
            p_subrc := 0;
          else
            p_subrc := 4;
          end if;
        end;
      ENDEXEC.
    and execute it
      EXEC SQL.
        execute procedure update_zsmadiprinc
                         (in  :wa-cod_interf,
                          in  :wa-ano_doc,
                          in  :wa-num_doc_valor_princ,
                          out :vg_subrc)
      ENDEXEC.
    But when i execute the procedure, shows dump error:
    Database error text........: "ORA-06550: line 1, column 7:#PLS-00905: object
    UPDATE_ZSMADIPRINC is invalid#ORA-06550: line 1, column 7:#PL/SQL:   
    Statement ignored#"                                                        
    Triggering SQL statement...: "CLOSE "                                       
    Internal call code.........: "[DBDS/NEW DSQL]"                              
    Please check the entries in the system log (Transaction SM21).              
    I comment all source, and the error is the same.
    When i create the procedure, no erros are show.
    I changed the name of the procedure, the type of parameters, and now i comment all and the error always is the same!!!! Can you help me!!! I need to finish this urgently!
    Thanks in advance
    Message was edited by:
            RP

    It is not possible to create a procedure, then, i just execute sql direct.
    thanks

  • Procedure error.

    Hello,
    I tried to create a procedure without any errors, but while executing I get error.
    ======================================================
    create or replace procedure pod_connect
    as
    v_date date;
    v_hldg_cusip fund_holding_d.hldg_instrument_id%TYPE;
    v_hldg_ticker instruments.ticker%TYPE;
    v_hldg_sedol instruments.sedol%TYPE;
    v_hldg_type funds.fund_typ_cd%TYPE;
    v_d_date date;
    cursor c1 is select hldg_cusip from temp_raw_fund_holdings;
    begin
    select date_value
    into v_date from ude_cycle_data_dates where date_type_code = 'CYCLE';
    insert into temp_raw_fund_holdings
    ( fund_id, fund_name, fund_dt, fund_cusip, hldg_cusip, hldg_shares, hldg_price, hldg_mv, hldg_pct, user_id, load_dt, change_dt, gnrd_src_id, snap_dt)
    select f.instrument_id,
    null,
    '13-apr-2006',
    i.cusip,
    f.hldg_instrument_id,
    f.hldg_shares,
    f.hldg_prc,
    f.hldg_mkt_val,
    f.hldg_pct,
    f.last_mod_id,
    f.d_date,
    f.d_date,
    11, -- it is numeric value and not null.
    f.d_date
    from fund_holding_d f,
    (select * from instruments where ticker in ('FSCFX', 'FINFX') ) i
    where (f.instrument_id = i.instrument_id )
    and f.d_date = v_date;
    FOR c1_rec IN c1
    LOOP
    select ticker, sedol into v_hldg_ticker, v_hldg_sedol from instruments
    where instrument_id = c1_rec.hldg_cusip;
    update temp_raw_fund_holdings
    set hldg_ticker = v_hldg_ticker,
    hldg_sedol = v_hldg_sedol where hldg_cusip = c1_rec.hldg_cusip;
    END LOOP;
    end;
    Procedure created.
    SQL> exec procedure pod_connect;
    BEGIN procedure pod_connect; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00103: Encountered the symbol "PROCEDURE" when expecting one of the
    following:
    begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge
    <a single-quoted SQL string> pipe
    <an alternatively-quoted SQL string>
    =========================
    Any help would be greatly appreciated.

    Please format your code next time for better readability using standard UBB notation: [pre] and [/pre].
    Execute your procedure in SQL*Plus:
    exec pod_connect;

Maybe you are looking for

  • Error: File just captured could not be read and was deleted after capture.

    I was just recording an extremely important interview. I have recorded literally 10.000 recordings before with the same setup, every day, over a period of some three years now. I'm recorging DV PAL through SDI input on a AJA KONA LS card. It seemed t

  • How do I link a address to an event?

    I noticed that when I turned the "birthday" calendar on in Ical, it displayed all listed birthdays from my address book with a link to the address in the URL field. The link typically looks like "addressbook://C92E150E-488F-421E-B60A-C4BA3C486DFE:ABP

  • BAPI_MATERIAL_BOM_GROUP_CREATE cannot set "Fixed Qty" = "" (Item cat.'T')

    Hi All, I got the problem that BAPI_MATERIAL_BOM_GROUP_CREATE cannot set "Fixed Qty" = "" when item category = "T". It always set = 'X', after finish BOM creation. Is it about the default value somewhere in this BAPI? How can I fix this? Thank you ve

  • "Current User" Displays Wrong User

    hi, has anyone else seen the problem of the "Current User" column displaying the wrong user name? any work-around? (ARD 3.2, OSX 10.4.11) thanks. -mike

  • My Tour Keeps Rebooting

    My 9630 Tour keeps rebooting, i dropped it in water a while back but it was fine for almost a year after 3 days in rice, and after the new facebook and bbm updates, ive noticed that it self reboots. I know exactly when its going to reboot, because th