Oracle  ESB Data Base adapter

The database adapter which is a part of Oracle ESB is not able to read and retrieve SDO geometry fields in database. All our products are totally dependent on Oracle Spatial Database. This has created peculiar situation to us to choose either Oracle DB or ESB, as they are not compatible to each other. Since both are your products, please provide us some solution.

This is a WebLogic Server forum, I suggest you ask in the SOA Suite forum for the Oracle ESB.
SOA Suite
I also suggest you open a support case to make sure the use case you are trying is supported on the combination of products you are using.

Similar Messages

  • How to determine the proper size for Oracle 8i Data Base Objects

    Hi,
    I'm working on an Oracle 8i Data base. I'd like to know how to determine the proper size for the Data Base objects such as tables, datafiles, tablespaces...
    Thanks.

    Start with the docs.
    http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76956/schema.htm#949
    Best Regards
    Krystian Zieja / mob

  • Error while connecting to oracle 10g data base

    Following is the code we used to connect to oracle 10g data base using symbian 7.1 series 80 SDK
    int CTest_S80AppUi::SetupODBC(void)
    RETCODE rc;
    char *DataSource = OD_DATA_SOURCE;
    char UserId = "system", Password = "manager";
    rc=SQLAllocEnv(&Henv);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocEnv", FALSE) < 0) return(-1);
    rc=SQLAllocConnect(Henv, &Hdbc);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocConnect", FALSE) < 0)
         //return(-1);
    rc = SQLConnect(Hdbc, (unsigned char *)DataSource, SQL_NTS,
              (unsigned char *)UserId, SQL_NTS,
              (unsigned char *)Password, SQL_NTS);
    bConnected = TRUE;
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLConnect", FALSE) < 0) return(-1);
    SQLAllocStmt(Hdbc, &Hstmt);
    //if (TEST_CHECK_ERR(SQL_NULL_HSTMT, rc, "SQLAllocStmt", FALSE) < 0) return(-1);
    return (1);
    } /* SetupODBC */
    iam getting the return code for SQLConnect as -1.
    Thanks in advance.

    Thanks for the reply.
    //syntax means comments.
    chk the following code.
    int SetupODBC(void)
    char *DataSource = "polite";
    char UserId = "system", Password = "manager";
    if ( SQLAllocEnv(&Henv) < 0 )
    return -1;
    if ( SQLAllocConnect(Henv, &Hdbc) < 0 )
    return -1;
    if ( SQLConnect(Hdbc, (unsigned char *)DataSource, SQL_NTS,
    (unsigned char *)UserId, SQL_NTS,
    (unsigned char *)Password, SQL_NTS) < 0 )
    return -1;
    if (SQLAllocStmt(Hdbc, &Hstmt) < 0 )
    return -1;
    return (0);
    As said earlier there is a problem in SQLConnect. It is returning -1.
    But the code should return 0 if successfully connected.
    The info regarding the arguments used in the above methods:
    HENV Henv; /* Handle to ODBC Environment object */
    HDBC Hdbc; /* Handle to ODBC Connection object */
    HSTMT Hstmt; /* Handle to ODBC Statement object */

  • Enforcing integrity using oracle specific data base commands .v. using fron

    Full subject : Enforcing integrity using oracle specific data base commands .v. using front end.
    It ought to be generally accepted that it is better to enforce integrity directly in the data base using constraints, dependencies, triggers etc rather than leaving it to specific front end programmes.
    In my view, the chief advantages - of enforcing integrity directly in the data base - are:
    (1) No process can violate the integrity.
    (2) Being server centric, these commands run on the server and so can be easily sized in one place.
    (3) One time data migration (imports) into the system using Oracle tools or SQL commands would also need to conform to the integrity constraints. Thus an implementor would be assured that the basic data is alright.
    I am faced with a situation where we are about to implement a new Oracle based package. During data migration, when we discovered that there are no integrity constraints built into the target data base, the package vendor asserted that it is not necessary to build in integrity into the database. This seems to be an extreme and risky view.
    Further, it is argued by the package vendor that putting constraints directly in the data base would significantly increase the needed resources (RAM) on the server. In my view, this increase is trivial and anyway, hardware costs are crashing day by day.
    In the absence of integrity checks in the data base, it seems to me that every program would have to extra zero value work to ensure integrity of the end user data. It will still never be complete.
    I would like to know the pros and cons of implementing without integrity constraints.
    OK.

    AnanthaP wrote:
    Full subject : Enforcing integrity using oracle specific data base commands .v. using front end.
    It ought to be generally accepted that it is better to enforce integrity directly in the data base using constraints, dependencies, triggers etc rather than leaving it to specific front end programmes.
    In my view, the chief advantages - of enforcing integrity directly in the data base - are:
    (1) No process can violate the integrity.
    (2) Being server centric, these commands run on the server and so can be easily sized in one place.
    (3) One time data migration (imports) into the system using Oracle tools or SQL commands would also need to conform to the integrity constraints. Thus an implementor would be assured that the basic data is alright.
    I am faced with a situation where we are about to implement a new Oracle based package. During data migration, when we discovered that there are no integrity constraints built into the target data base, the package vendor asserted that it is not necessary to build in integrity into the database. This seems to be an extreme and risky view.
    Further, it is argued by the package vendor that putting constraints directly in the data base would significantly increase the needed resources (RAM) on the server. In my view, this increase is trivial and anyway, hardware costs are crashing day by day.
    In the absence of integrity checks in the data base, it seems to me that every program would have to extra zero value work to ensure integrity of the end user data. It will still never be complete.
    I would like to know the pros and cons of implementing without integrity constraints.
    OK.It's a shame you seem to be so far into the process and committed to this vendor. I once had a vendor tell us his product would run on Oracle but they recommended MS SQL Server because "oracle can't handle more than 5 concurrent sessions." I made sure that vendor didn't make the short list.

  • Cannot load any data from Oracle 11G data base

    Hi Gurus!
    We using SAP BI 7.0.
    We have a source system, which is an Oracle Data warehouse based on Oracle 11G data bases.
    We created the source system in the BI without any problem.
    The connection is open to the Oracle databases.
    We created data source in the BI (trn. RSA1), and when we would like to Read Preview Data (Display data source, Preview tab) we can't see anything.
    The system is working, in trn. SM50 we see the process is runing, but we can't see any data (we wait more than 5000 sec.)
    When we tried data load from the source system, we got a short dump with time-out (after 50000 sec.)
    Summarize:
    - the connection to the source system is OK,
    - the process is running
    - we can't see any Preview data
    Can somebody help us?
    Thank you.
    Best regards,
    Gergely Gombos

    We really need to know what errors or warnings the Cache Agent is reporting in the TimesTen ttmesg.log files, when an autorefresh fails, to be able to give advice. If the size of the datastore segment is 512MB (though you don't say how that is divided between Perm, Temp and Log Buffer) but you're only using 30MB of Perm, then on the face of it, it's not a problem in running out of memory. You say autorefresh doesn't complete when "there are a lot of updates on cached tables" - do you mean updates being done directly on the rows in the TimesTen cachegroups, by users? If so, it sounds to me like you have locking contention between the user updates, and the autorefresh mechanism trying to bring new rows in from Oracle. Again, the ttmesg.log should spell this out.

  • How to load .dmp file into oracle 11gR2 data base schema ?

    hello experts,
    i have a .dmp file and i wnat to use the data in this file for my further practices.
    so, i need to dump the data in the .dmp file to the any schema exiists in data base.
    Please give me step by step procedure to execute my requirement....ASAP.
    Thanks in Advance
    LAkshmi kanth

    Pl post details of exact OS and database versions. The answer will depend on exactly how this dmp file was created. What is the issue you are trying to resolve ? This is a forum of peer volunteers - for all ASAP issues, pl open an SR with Support
    HTH
    Srini

  • How to insert the partner link (xml)response to data base adapter in BPEL:

    Hi to every one,
    I have little bit knowledge in oracle SOA suit and having knowledge in java technologies,
    I am developing one central reporting server for this I have the following requirement.
    I need to call ‘N’ departmental servers (partner links) daily at specific time I need to insert all the transaction details (xml) response in central database (db adapter).
    I’m able to call the ‘N’ partner links but I’m facing the problem while inserting ‘N’ servers response into central db using db adapter.
    I written one common xsd file for request and response for N departmental server.
    Following are the SOAP request and response formats for your reference.
    <!-- =========== request formate ========= -->
    <Reportreq xsi:type="rep:Reportreq">
    <reqdate xsi:type="xsd:string">01-01-2010</reqdate>
    <reqtime xsi:type="xsd:string">1100</reqtime>
    </Reportreq>
    <!-- ======= Response Formate ================================ -->
    <multiRef id="id0" soapenc:root="0"
         soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xsi:type="ns2:ResponseBean" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
         xmlns:ns2="ReportServer">
         <errorcode xsi:type="xsd:string"/>
         <errordesc xsi:type="xsd:string" xsi:nil="true"/>
    <reportres xsi:type="xsd:string">
    <![CDATA[<response:getTransData>
              <transdate>01-01-2010</transdate>
              <transtime>1100</transtime>
              <distcode>03</distcode>
    <transdata>
    <centre>GVLH</centre><deptcode>15</deptcode><servicecode>1</servicecode>
    <cashtrans>1</cashtrans><cashamt>165</cashamt><chqtrans>0</chqtrans>
    <chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt>
    <cardtrans>0</cardtrans><cardamt>0</cardamt>
    <epaytrans>0</epaytrans><epayamt>0</epayamt><userchrgs>0</userchrgs>
    </transdata>
    <transdata><centre>RBVP</centre><deptcode>15</deptcode>
    <servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>3000</cashamt>
    <chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt><cardtrans>0</cardtrans>
    <cardamt>0</cardamt><epaytrans>0</epaytrans><epayamt>0</epayamt>
    <userchrgs>0</userchrgs></transdata>
    <transdata><centre>RKBH</centre><deptcode>15</deptcode>
    <servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>412</cashamt>
    <chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt><cardtrans>0</cardtrans><cardamt>0</cardamt><epaytrans>0</epaytrans>
    <epayamt>0</epayamt><userchrgs>0</userchrgs></transdata>
    <transdata><centre>ARLV</centre><deptcode>101</deptcode>
    <servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>125</cashamt>
    <chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans>
    <ddamt>0</ddamt><cardtrans>0</cardtrans><cardamt>0</cardamt>
    <epaytrans>0</epaytrans><epayamt>0</epayamt><userchrgs>0</userchrgs>
    </transdata>
    <transdata><centre>NTRS</centre><deptcode>101</deptcode>
    <servicecode>1</servicecode><cashtrans>7</cashtrans><cashamt>2567</cashamt>
    <chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans>
    <ddamt>0</ddamt><cardtrans>0</cardtrans>
    <cardamt>0</cardamt><epaytrans>0</epaytrans><epayamt>0</epayamt>
    <userchrgs>0</userchrgs></transdata>
    <!-- I will get “transdata” tag nearly 1000 to 10000 -->     
         </response:getTransData> ]]>
    </reportres>
    </multiRef>
    In java I hold the response XML string between the <response> tag and with the DOM parser I am able to insert the response data into central server.
    Now I want to do this in BPEL, I am getting the response from N partner links but I am facing the problem while inserting the response data into central database.
    Let me know if you have any idea or small example to achieve my requirement.
    Note: All partner services were implemented in bottom up approach.
    Have a good day,
    Thanks in advance,
    Regards,
    Ishmayel.v

    Hi to every one,
    I have little bit knowledge in oracle SOA suit and having knowledge in java technologies,
    I am developing one central reporting server for this I have the following requirement.
    I need to call ‘N’ departmental servers (partner links) daily at specific time I need to insert all the transaction details (xml) response in central database (db adapter).
    I’m able to call the ‘N’ partner links but I’m facing the problem while inserting ‘N’ servers response into central db using db adapter.
    I written one common xsd file for request and response for N departmental server.
    Following are the SOAP request and response formats for your reference.
    <!-- =========== request formate ========= -->
    <Reportreq xsi:type="rep:Reportreq">
    <reqdate xsi:type="xsd:string">01-01-2010</reqdate>
    <reqtime xsi:type="xsd:string">1100</reqtime>
    </Reportreq>
    <!-- ======= Response Formate ================================ -->
    <multiRef id="id0" soapenc:root="0"
         soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xsi:type="ns2:ResponseBean" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
         xmlns:ns2="ReportServer">
         <errorcode xsi:type="xsd:string"/>
         <errordesc xsi:type="xsd:string" xsi:nil="true"/>
    <reportres xsi:type="xsd:string">
    <![CDATA[<response:getTransData>
              <transdate>01-01-2010</transdate>
              <transtime>1100</transtime>
              <distcode>03</distcode>
    <transdata>
    <centre>GVLH</centre><deptcode>15</deptcode><servicecode>1</servicecode>
    <cashtrans>1</cashtrans><cashamt>165</cashamt><chqtrans>0</chqtrans>
    <chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt>
    <cardtrans>0</cardtrans><cardamt>0</cardamt>
    <epaytrans>0</epaytrans><epayamt>0</epayamt><userchrgs>0</userchrgs>
    </transdata>
    <transdata><centre>RBVP</centre><deptcode>15</deptcode>
    <servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>3000</cashamt>
    <chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt><cardtrans>0</cardtrans>
    <cardamt>0</cardamt><epaytrans>0</epaytrans><epayamt>0</epayamt>
    <userchrgs>0</userchrgs></transdata>
    <transdata><centre>RKBH</centre><deptcode>15</deptcode>
    <servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>412</cashamt>
    <chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans><ddamt>0</ddamt><cardtrans>0</cardtrans><cardamt>0</cardamt><epaytrans>0</epaytrans>
    <epayamt>0</epayamt><userchrgs>0</userchrgs></transdata>
    <transdata><centre>ARLV</centre><deptcode>101</deptcode>
    <servicecode>1</servicecode><cashtrans>1</cashtrans><cashamt>125</cashamt>
    <chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans>
    <ddamt>0</ddamt><cardtrans>0</cardtrans><cardamt>0</cardamt>
    <epaytrans>0</epaytrans><epayamt>0</epayamt><userchrgs>0</userchrgs>
    </transdata>
    <transdata><centre>NTRS</centre><deptcode>101</deptcode>
    <servicecode>1</servicecode><cashtrans>7</cashtrans><cashamt>2567</cashamt>
    <chqtrans>0</chqtrans><chqamt>0</chqamt><ddtrans>0</ddtrans>
    <ddamt>0</ddamt><cardtrans>0</cardtrans>
    <cardamt>0</cardamt><epaytrans>0</epaytrans><epayamt>0</epayamt>
    <userchrgs>0</userchrgs></transdata>
    <!-- I will get “transdata” tag nearly 1000 to 10000 -->     
         </response:getTransData> ]]>
    </reportres>
    </multiRef>
    In java I hold the response XML string between the <response> tag and with the DOM parser I am able to insert the response data into central server.
    Now I want to do this in BPEL, I am getting the response from N partner links but I am facing the problem while inserting the response data into central database.
    Let me know if you have any idea or small example to achieve my requirement.
    Note: All partner services were implemented in bottom up approach.
    Have a good day,
    Thanks in advance,
    Regards,
    Ishmayel.v

  • Oracle 9i data base insatllation problem on window xp

    hi to all
    i have prolem to insatll oracle 9i database realse 2 on window xp 2002 in the last of insatll when configuration tools window appear and oracle database assistant start to create database give error oracle database assistant error
    " NOT A ZIP FILE(HEADER NOT FOUND)" and last window appear oracle databse insatllation is unsuccessful whats this error please help me

    Hi to All
    Oracle Installer reads and executes many winzip files in the process of installation.
    The error
    " NOT A ZIP FILE(HEADER NOT FOUND)"
    indicates that the problem is one of the zip files oracle installer wants to execute. The file may be corrupted or it may be residing on corrupt media.
    Solution: Replace Oracle CD and Start again
    Regards
    Awais

  • I want to connect oracle 10g developer run time forms to oractle data base

    Hey,
    Would any body want to tell me, how come i can connect oracle dev 10g from its forms with oracle 10g data bases
    I am waiting
    bye

    Try asking this on the Oracle Forms forum:
    http://forums.oracle.com/forums/category.jspa?categoryID=19
    In any case you need to set-up a sqlnet connection from your client to your server. Use the Network Configuration Utility that comes with the Oracle Forms installation.

  • How to make a data base connexion in java?

    I have an oracle 7 data base that i want to connect how to make a data base connexion in java?

    J
    D
    B
    C
    Search these forums or follow the JDBC tutorial

  • EJB- data base connectiviy:

    we used Jdeveloper 3.0 to develop a Simple EJB object using the wizard.
    we have also deployed the same in the oracle 8i data base(8.1.5).
    there were no errors during deployment.
    we used jdk 1.1.8 option for developing EJB objects.
    we have also created a EJB client using JDveloper Wizard.
    client is also working fine when we invoke the EJB object .
    In our bean class we are using JDBC calls for validation:
    we used the following code in the bean class in our method for getting connection:
    Connection conn = new oracle.jdbc.driver.OracleDriver().defalutConnection();
    with this connection we executed JDBC calls.
    the client is able to establish a data base connection .and able to invoke our bean method also.
    Here the data base to which we connect is same where we deployed our EJB object.
    (the deployement and JDBC calls are made to the same data base )
    Now we try to use the following code for connecting to the data base other than where we deployed the EJB object.
    The data base from where we try to establish data base conncection is oracle 8.0.4 . (for business logic )
    we use the following code in our bean class for the data base connection
    Class.forName("oracle.jdbc.driver.OracleDriver");
    String url = "jdbc:oracle:thin:@192.168.1.99:1521:orcl"
    Connection conn = DriverManager.getConnection( url,"pilotjava","insyst");
    when we run the clinet it is giving following error message
    "D:\Oracle\JDeveloper\java\bin\javaw.exe" -classpath "D:\Oracle\JDeveloper\lib\jbotester.zip;D:\Oracle\JDeveloper\lib\jbodatum.zip;D:\Oracle\JDeveloper\lib\jbomt.zip;D:\Oracle\JDeveloper\lib\jboremote.zip;D:\Oracle\JDeveloper\lib\jnd i.jar;D:\Oracle\JDeveloper\lib\xmlparserv2.jar;D:\Oracle\JDeveloper\myclasses;D:\Oracle\JDeveloper\lib\jdev-rt.zip;D:\Oracle\JDeveloper\jdbc\lib\oracle8.1.5\classes111.zip;D:\Oracl e\JDeveloper\lib\connectionmanager.zip;D:\Oracle\JDeveloper\lib\jbodatum.zip;D:\Oracle\JDeveloper\lib\jbomt.zip;D:\Oracle\JDeveloper\lib\jboremote.zip;D:\Oracle\JDeveloper\lib\jndi .jar;D:\Oracle\JDeveloper\lib\xmlparserv2.jar;D:\Oracle\JDeveloper\myprojects\mayur;D:\Oracle\JDeveloper\lib\jbohtml.zip;D:\Oracle\JDeveloper\lib\jboremoteejb.zip;D:\Oracle\JDevelo per\aurora\lib\aurora_client.jar;D:\Oracle\JDeveloper\aurora\lib\vbjorb.jar;D:\Oracle\JDeveloper\aurora\lib\vbjapp.jar;D:\Oracle\JDeveloper\lib\javax_ejb.zip;D:\Oracle\JDeveloper\l ib\jboo8i.zip;D:\Oracle\JDeveloper\jswdk-1.0\lib\servlet.jar;D:\Oracle\JDeveloper\lib\ojsprun.jar;D:\Oracle\JDeveloper\myprojects\WebApp6;D:\Oracle\JDeveloper\aurora\lib\aurora_cli ent.jar;D:\Oracle\JDeveloper\aurora\lib\vbjorb.jar;D:\Oracle\JDeveloper\aurora\lib\vbjapp.jar;D:\Oracle\JDeveloper\aurora\lib\vbjtools.jar;D:\Oracle\JDeveloper\aurora\lib\vbj30ssl. jar;D:\Oracle\JDeveloper\myprojects\MrSource1.jar;D:\Oracle\JDeveloper\myprojects\MrGenerated1.jar;D:\Oracle\JDeveloper\myprojects\MyEJBmaytestRSource1.jar;D:\Oracle\JDeveloper\myp rojects\MyEJBmaytestRGenerated1.jar;D:\Oracle\JDeveloper\java\lib\classes.zip;D:\Oracle\JDeveloper\jfc\lib\swingall.jar" oracle.jbo.jbotester.MainFrame -M Local -C "jdbc:oracle:thin:pilotjava/[email protected]:1521:ORCL" -T AppModule -N mayur.AppModule -H "D:\Oracle\JDeveloper\doc"
    AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
    Copyright (c) 1997-1998 Borland International. All Rights Reserved.
    Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved.
    Diagnostics: Silencing all diagnostic output (use -Djbo.debugoutput=console to see it)
    Creating an initial context
    Looking for the EJB published as 'test/MyEJBmaytestR'
    Creating a new EJB instance
    thge value is mayur.JomItemViewImpl@1ec343
    Error is java.sql.SQLException: No suitable Driver
    OracleDriver.connect
    where mayur.JomItemViewImpl@1ec343 is the Object referece of the bean class -> beanclass.toStirng()
    please suggest us solution for our problem.
    advance thanks for your help.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JDev Team:
    You cannot connect thru OCI drivers. Not sure about the global database names. You can check in the documentation available on the OTN
    thanks and best regards
    raghu<HR></BLOCKQUOTE>
    Dear Raghu/Laura,
    Thanks for your reply .
    we tried, as per your sugession, creating a DB link to the other data base,
    it is not working out. we get following error ,when we run the client.
    OUR DBLINK NAME IS : ORACLE.WORLD.
    "D:\JDEV3.0\java\bin\javaw.exe" -mx50m -classpath
    projects\varaEJBSource.jar;D:\JDEV3.0\java\lib\classes.zip" varaganEJB.varaganEJBJSClient
    Creating an initial context
    Looking for the EJB published as 'test/varaganEJB'
    Creating a new EJB instance
    Calling varaganEJB.varaEJB methods...
    ...done!varagan
    error during invoke ejbnull
    javax.jts.HeuristicRollbackException
    when we tried to call the tables of the same database it is working fine .
    we have tested the database link , by calling the same Sql statement using
    oracle 8i client (SQL) , it is working fine.
    Following is the source code of us: Pl go thru and suggest us.
    NOTE: I HAVE REMOVED THE SOME OF THE DEFALUT CODES GEN BY JD.....(BUT FOR THE NAMES)
    TO REDUCE UNNECESSARY INFO.
    REMOTE:
    public interface varaEJB extends EJBObject {
    public java.lang.String getEname(int empno) throws java.rmi.RemoteException;
    public java.lang.String getmyName() throws java.rmi.RemoteException;
    HOME:
    varaEJB create() throws java.rmi.RemoteException, javax.ejb.CreateException;
    BEANCLASS:
    public class varaEJBClass implements SessionBean {
    public String getmyName() throws RemoteException{
    return "varagan";
    public String getEname(int empno) throws RemoteException{
    // String sql = "select ename from emp where empno = ?";
    String sql1 = "select item_name from [email protected] where item_code = ?" ;
    try {
    Connection connect = new oracle.jdbc.driver.OracleDriver().defaultConnection() ;
    System.out.println("connected");
    PreparedStatement ps = connect.prepareStatement(sql);
    System.out.println("statement prepared");
    ps.setString(1,"FAB7022050");
    // ps.setInt(1,empno);
    ResultSet rs = ps.executeQuery();
    if (rs.next())
    return rs.getString(1);
    else
    return "No record for this emp number";
    }catch(Exception ex){
    System.out.println("error occurred druing sql "+ex);
    return ex.getMessage();
    }// getename
    CLIENT CODE:
    public class varaganEJBJSClient {
    public static void main(String[] args) {
    String ejbUrl = "sess_iiop://192.168.1.24:2481:ORCL/test/varaganEJB";
    String username = "scott";
    String password = "tiger";
    // Setup the environment
    Hashtable environment = new Hashtable();
    // Tell JNDI to speak sess_iiop
    environment.put(javax.naming.Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
    // Tell sess_iiop who the user is
    environment.put(Context.SECURITY_PRINCIPAL, username);
    // Tell sess_iiop what the password is
    environment.put(Context.SECURITY_CREDENTIALS, password);
    // Tell sess_iiop to use credential authentication
    environment.put(Context.SECURITY_AUTHENTICATION, ServiceCtx.NON_SSL_LOGIN);
    // Lookup the URL
    varaganEJB.varaEJBHome homeInterface = null;
    try {
    System.out.println("Creating an initial context");
    Context ic = new InitialContext(environment);
    System.out.println("Looking for the EJB published as 'test/varaganEJB'");
    homeInterface = (varaganEJB.varaEJBHome) ic.lookup(ejbUrl);
    catch (ActivationException e) {
    System.out.println("Unable to activate : " + e.getMessage());
    e.printStackTrace();
    System.exit(1);
    catch (CommunicationException e) {
    System.out.println("Unable to connect: " + ejbUrl);
    e.printStackTrace();
    System.exit(1);
    catch (NamingException e) {
    System.out.println("Exception occurred!");
    System.out.println("Cause: This may be an unknown URL, or some" +
    " classes required by the EJB are missing from your classpath.");
    System.out.println("Suggestion: Check the components of the URL," +
    " and make sure your project includes a library containing the" +
    " EJB .jar files generated by the deployment utility.");
    e.printStackTrace();
    System.exit(1);
    // That's it!
    try {
    System.out.println("Creating a new EJB instance");
    varaganEJB.varaEJB remoteInterface = homeInterface.create();
    System.out.println("Calling varaganEJB.varaEJB methods...\n");
    // Method calls go here!
    // e.g.
    // System.out.println(remoteInterface.foo());
    System.out.println("...done!"+remoteInterface.getmyName());
    System.out.println("employee name is : "+remoteInterface.getEname(7839));
    catch (Exception e) {
    System.out.println("error during invoke ejb"+e.getMessage());
    e.printStackTrace();
    PLEASE SUGESST US.
    WE HAVE ANOTHER DOUBT ,RELATED TO DBLINK,;
    WE ARE NOT ABLE TO CREATE A DB LINK OF OUR OWN NAME , THE NAME MUST BE "ORACLE.WORLD".
    WHAT IS THE LOGIC BEHIND?
    ANY PARAMETER TO BE SET UP SEPARTELY?
    null

  • Problem In Data Base Creation... Oracle 10g server in windows server 2008

    I have installed Oracle 10g server in windows server 2008 and the domain & active directory r created now i am trying to create the databse i am getting usual error (tns protocol adapter error ) in the 2% i have removed the domain and the active directory from windows then i created but this is not a solutions i need to create the data base in the domain server...

    this is a forms forum.
    please post in Database Installation

  • How to export a data as an XML file from oracle data base?

    could u pls tell me the step by step procedure for following questions...? how to export a data as an XML file from oracle data base? is it possible? plz tell me itz urgent requirement...
    Thankz in advance
    Bala

    SQL> SELECT * FROM v$version;
    BANNER
    Oracle DATABASE 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS FOR 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    5 rows selected.
    SQL> CREATE OR REPLACE directory utldata AS 'C:\temp';
    Directory created.
    SQL> declare                                                                                                               
      2    doc  DBMS_XMLDOM.DOMDocument;                                                                                       
      3    xdata  XMLTYPE;                                                                                                     
      4                                                                                                                        
      5    CURSOR xmlcur IS                                                                                                    
      6    SELECT xmlelement("Employee",XMLAttributes('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsi",                       
      7                                  'http://www.oracle.com/Employee.xsd' AS "xsi:nonamespaceSchemaLocation")              
      8                              ,xmlelement("EmployeeNumber",e.empno)                                                     
      9                              ,xmlelement("EmployeeName",e.ename)                                                       
    10                              ,xmlelement("Department",xmlelement("DepartmentName",d.dname)                             
    11                                                      ,xmlelement("Location",d.loc)                                     
    12                                         )                                                                              
    13                   )                                                                                                    
    14     FROM   emp e                                                                                                       
    15     ,      dept d                                                                                                      
    16     WHERE  e.DEPTNO=d.DEPTNO;                                                                                          
    17                                                                                                                        
    18  begin                                                                                                                 
    19    OPEN xmlcur;                                                                                                        
    20    FETCH xmlcur INTO xdata;                                                                                            
    21    CLOSE xmlcur;                                                                                                       
    22    doc := DBMS_XMLDOM.NewDOMDocument(xdata);                                                                           
    23    DBMS_XMLDOM.WRITETOFILE(doc, 'UTLDATA/marco.xml');                                                                  
    24  end;                                                                                                                  
    25  /                                                                                                                      
    PL/SQL procedure successfully completed.
    .

  • Creating a Single Report from Oracle Data Base and BI Answers

    Hi,
    I wanted to create a single report by using a BI Report where in we have project and Activity columns,now I want to add column with Program to see the results.Program data is in Oracle Database.
    Can some one help me how to create the report.
    ii.How to edit a pivot table in BI word designer.What I am doing present is creating every time a new report.
    Thx In Adv.
    From Sravan

    Hi Pivot table was a general question.Is is nothing to do with the qus 1.
    See I have a report which have a programme and Activity.So I need to get the data of Prject from Data base how to do this in BIP.....I am not using any pivot table here.

  • Load data from xml file in oracle data base

    Hi all,
    I'd like to know if is posible to load data from a file xml into a table of oracle data base through SQL*LOADER, loaded only in a normal column no with type XMLType , for example
    I have a xml file
    <person name="kate" surname="fari" city="new york" >
    <son name="faus" age="18"/>
    <son name="doly" age="10"/>
    </person>
    and I load in table :
    table :person
    column
    name surname city
    kate fari new york
    table : son
    name age
    doly 10
    faus 18
    thank you for your return !!!!!!!!!
    Ninova
    Edited by: user10474037 on 30 mai 2011 08:47
    Edited by: user10474037 on 30 mai 2011 08:48
    Edited by: user10474037 on 30 mai 2011 08:48
    Edited by: user10474037 on 30 mai 2011 08:49
    Edited by: user10474037 on 30 mai 2011 08:50

    Hi
    This May be found at
    SQL Loader to upload XML file

Maybe you are looking for

  • Accounting entries at billing and excise invoice creation in J1IIN

    Hello Guruz I need to know the accouning entries at the time of billing and the excise invoice creation in J!IIN. Thanks in advance. Regards.

  • I am getting "ORA-00900: invalid SQL statement"  error.?

    I did installed oracle 11gR2. and used "DBMS_METADATA_DIFF.COMPARE_ALTER('TABLE','TBL_A','TBL_A','USER1','USER2')"   to see the result like below,  but I am getting "ORA-00900: invalid SQL statement"  error.   Any idea? I am using: Oracle Database 11

  • Mac gets blue screen while installing Windows 7 with bootcamp

    I had a problem while trying to install Windows 7 Ultimate 64-bit on my MacBook mid-2010.  When i would create the partition using bootcamp assistant and my computer restarted into the install process, i would get a blue screen.  The blue screen woul

  • System Status field in QA33 transaction

    Hai Friends, In QA33 transaction i am giving date,plant and inspection lot numbers as 89 and i execute. i am getting a list. From this list i want to take the last column"System Status". Please tell me the table name where i can fetch. In my program

  • Translation process

    hello, This is my first post in this forum and i am new to htmldb. i want to translate my application into italian but the problem i am facing is how to translate the xliff file when i am trying to open the xliff file generated by Oracle html db in x