Connecting to external database in weblogic portal 9.2

hi
i have installed a portal 9.2 and i have my portal framework data in pointbase database,
i want to connect to oracle database to fetch some report data, but the entire server and workshop crashed with the error that the anonymouse user and table is not defined,
what did i did mistake in connecting to that oracle database,?
i had just created a datasource in jdbc services nothing else and the driver was XA compliant,
please help me out

Hi,
If you can post the exact error or exception you are getting will be able to understand the exact problem.
But you can use the oracle thin driver(<driver-name>oracle.jdbc.OracleDriver</driver-name>, <url>jdbc:oracle:thin:localhost:1521:DBName</url>).With this driver it works absolutely fine.
Bishnu

Similar Messages

  • Problem JDBC Connection using OCI Driver on Weblogic Portal on Linux

    Hi Team,
    I want a JDBC connection using OCI Driver in Weblogic Portal 8.1 sp4 on Linux. When I had tested using JDBC connection using Plain Java Code it is working. Also when I create the OCI Connection Weblogic Connection Pool it is working.
    But My Requirement is to create the connection using Java Code in Portal Application
    But When I create OCI connection in the code it is throwing NO SUITABLE DRIVER Found.
    ---------- Code in Plain Java Code ------------ Same code is used in Weblogic Portal Application --------------------------------
         public static void main(String[] args) throws Exception{
              Class.forName("oracle.jdbc.driver.OracleDriver");
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              String url="jdbc:oracle:oci8:@TESTDB";
              Properties props = new Properties();
         props.put("user","scott");
         props.put("password","tiger");
              conn=DriverManager.getConnection(url,props);
    When I am using the same code in Weblogic Portal and Deployed on Weblogic Portal Server 8.1 SP4 it is throwing following error.
    -------------- Exception on Server Log --------------------
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(Ljava.lang.String;Ljava.util.Properties;Ljava.lang.ClassLoader;)Ljava.sql.Connection;(Unknown Source)
    at java.sql.DriverManager.getConnection(Ljava.lang.String;Ljava.util.Properties;)Ljava.sql.Connection;(Unknown Source)
    My Environment is
    LINUX
    Weblogic 8.1 SP4
    Oracle 9i Client on Same Machine
    Oracle 10g Server on Different Machine
    My Environment Variables on the Linux Server also set properly as following
    PATH=/apps/pmaaum/ant/apache-ant-1.6.5/bin:.:/apps/beahomedev/jdk142_05/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/apps/oracle/ora9i/product/9.2.0/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/apps/oracle/ora9i/bin
    LD_LIBRARY_PATH=/usr/lib:/apps/oracle/ora9i/product/9.2.0/lib:/apps/oracle/ora9i/product/9.2.0/lib32:/apps/oracle/ora9i/product/9.2.0/rdbms/lib:/usr/openwin/lib:/apps/oracle/ora9i/product/9.2.0/jdbc/lib
    JAVA_HOME=/apps/beahomedev/jdk142_05
    JDBC_LIB=/apps/oracle/ora9i/product/9.2.0/jdbc/lib
    CLASSPATH=:.:/apps/beahomedev/jdk142_05/lib/rt.jar:/apps/oracle/ora9i/product/9.2.0/jdbc/lib/classes12.jar
    Please help me, Let me know if you required anything.
    Thanks in Advance
    Vishnu
    Edited by: vishnuk on Oct 23, 2009 4:07 AM
    Edited by: vishnuk on Oct 23, 2009 4:10 AM

    Hi Vishnu
    Looks like a classloader issue. BEA class loader is very tricky. Any jar added manually in classpath, will end up loading only those classes. Any imports that we have in any of those classes do not get loaded. Anyhow, coming to your point, add classes12.jar inside your portal web project Web-Inf/lib folder and see if that helps. Usually thats where we put all the JARs for 8.1 SPxx applications. If this still breaks, then remove the jar from web-inf/lib folder and add under your portal app App-Inf/lib folder. First try with app-inf/lib folder having this jar. If not then with web-inf/lib. Basically web-inf is specific to that web app only. If you have a different app having this jdbc code, then put under app-inf/lib folder. Make sure that you remove the classes12.jar that you added in classpath either in env variable or in setdomainenv.cmd file.
    When weblogic uses native OCI Drivers, it refers to jars at this location: ....\beawlp814\weblogic81\server\ext\jdbc\oracle\10g or 9g. Try using one of these jars and see if that works. Most of the times I used these jars only for oracle specific native drivers.
    Word of caution. Try to use Connection Pool and a DataSource created in weblogic console for your jdbc code. This Datasource can still use the Oracle drivers that you want (instead of BEA Weblogic wrapper oci drivers) located in above location. Use JNDI Lookup and get Datasource and then connection. This is more recommended approach with many advantages then using DriverManager approach..
    Goud

  • Connection to external database

    Hi All,
    we have an requirement to connect SAP R/3 to external database which is oracle and java tool for data uploading.
    One of our team abaper requested us to establish the connection.
    When explored , i got some info on DB11 and DBCON table.
    I created the connection with the DBM user control and SAP user SAPR3.
    Please let me know how to test the connection further and details on connection to external database from BASIS point of view.
    Thanks

    Hi,
    Using transaction SE11, create a table (ZTABLE) with the same fields as the table in the external database, make sure that the type and lengths of the fields are identical.
    Using transaction SE11, create a view (ZTABLE_VIEW, projection view) using BASIS table ZTABLE
    Using SVRMGRL>
    create dblink REMOTE_DB as connect to remote_user identified by password; (database link created)
    drop table ZTABLE; (table dropped)
    create synonym ZTABLE for ZTABLE@REMOTE_DB; (synonym created)
    Using transaction SE16 , type in ZTABLE_VIEW and hit RETURN
    Enter value in key fields and hit execute. (displays rows from the remote table)
    In other words
    To access an external database from ABAP via DBLINK (ORACLE)
    Using transaction SE11, create a table (ZTABLE) with the same fields as the table in the external
    database, make sure that the type and lengths of the fields are identical.
    Using transaction SE11, create a view (ZTABLE_VIEW, projection view) using BASIS table ZTABLE
    Using SVRMGRL>
    create dblink REMOTE_DB as connect to remote_user identified by password; (database link created)
    drop table ZTABLE; (table dropped)
    create synonym ZTABLE for ZTABLE@REMOTE_DB; (synonym created)
    Using transaction SE16 , type in ZTABLE_VIEW and hit RETURN
    Enter  value in key fields and hit execute. (displays rows from the remote table)
    <REMOVED BY MODERATOR>
    Jagadish
    Edited by: Alvaro Tejada Galindo on Apr 8, 2008 6:08 PM

  • JDBC connection to external database not working from EP 6 SP2.

    We have Enetrprise Portal 6 Service Pack 2 installed. We are planning to install business content which gets the data from external database using JDBC driver.
    We are using standard JDBC driver, which comes with the Portal EP 6 SP2. Name of the class is com.sap.portals.jdbc.oracle.OracleDriver. 
    We defined the system as JDBC system. Alias is defined. When we try to run, we are getting following error on the server.
    <u>
    java.sql.SQLException: ID004110: Error occurred while trying to connect to DB: java.sql.SQLException: [SAP_Portals][SQLServer JDBC Driver]Error establishing socket. Operation timed out: connect
         at com.inqmy.services.dbpool.ConnectionPoolDataSourceImpl.getPooledConnection(ConnectionPoolDataSourceImpl.java:151)
         at com.inqmy.services.dbpool.ConnectionStorage.getPhysicalConnection(ConnectionStorage.java:342)
         at com.inqmy.services.dbpool.ConnectionStorage.getWriteLockConnection(ConnectionStorage.java:405)
         at com.inqmy.services.dbpool.QConnection.beforeOperation(QConnection.java:44)
         at com.inqmy.services.dbpool.XAQConnection.beforeOperation(XAQConnection.java:112)
         at com.inqmy.services.dbpool.XAQConnection.getAutoCommit(XAQConnection.java:139)
         at com.sap.security.core.persistence.datasource.imp.J2EEConnectionPool.getConnection(J2EEConnectionPool.java:194)
         at com.sap.security.core.persistence.datasource.imp.DataBasePersistence.doSearch(DataBasePersistence.java:3318)
         at com.sap.security.core.persistence.datasource.imp.DataBasePersistence.searchPrincipalDatabags(DataBasePersistence.java:2298)
         at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.searchPrincipalDatabagsInternal(PrincipalDatabagFactory.java:3742)
         at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.searchPrincipalDatabags(PrincipalDatabagFactory.java:3275)
         at com.sap.security.core.imp.PrincipalFactory.searchPrincipals(PrincipalFactory.java:1323)
         at com.sapportals.portal.license.LiKeyPersistence.getPersistenceObject(LiKeyPersistence.java:59)
         at com.sapportals.portal.license.LiKeyPersistence.getKey(LiKeyPersistence.java:119)
         at com.sap.security.core.server.likey.LicenseChecker.getValidityDate(LicenseChecker.java:666)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.sapportals.portal.prt.service.license.WAS620.LicenseChecker620.getValidityDate(LicenseChecker620.java:65)
         at com.sapportals.portal.prt.service.license.LicenseService.doTheCheck(LicenseService.java:483)
         at com.sapportals.portal.prt.service.license.LT.run(LT.java:43)
    </u>
    I appreciate any help.

    Please ignore the error mentioned in the original message. Actual error is as follows.
    <u>
    Component class : com.pacificorp.sap.portal.vantive.view.VantiveMetrics
    User : P04233
         at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:858)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:310)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:209)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:576)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:669)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:208)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
         at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:832)
         at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:666)
         at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:313)
         at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
         at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)
         at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
         at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
         at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
    Caused by: java.lang.NoSuchMethodError
         at com.pacificorp.sap.portal.vantive.model.JDBCVantiveModel.getDatabaseConnection(JDBCVantiveModel.java:601)
         at com.pacificorp.sap.portal.vantive.model.JDBCVantiveModel.loadMetricsSummary(JDBCVantiveModel.java:59)
         at com.pacificorp.sap.portal.vantive.helper.VantiveMetricsHelper.loadMetricsSummary(VantiveMetricsHelper.java:30)
         at com.pacificorp.sap.portal.vantive.view.VantiveMetrics$ContentDynPage.doProcessBeforeOutput(VantiveMetrics.java:129)
         at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:106)
         at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:209)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:576)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:669)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:208)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
         at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:832)
         at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:666)
         at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:313)
         at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
         at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)
         at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
         at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
         at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
    </u>

  • JDBC Connection to MSSQL-Database in Netweaver Portal

    We are running into problems when trying to create a Query- or JDBC iView to retrieve data from a MS SQL server table.
    Here is what we have tried on 2 different EP portals.
    Portal versions:
    6.0.12.0.0 (NW04 SPS12)
    6.0.14.0.0 (NW04 SPS14)
    Step 1: Created a JDBC system.
    Connection URL  - jdbc:microsoft:sqlserver://<servername>:1433;DatabaseName=name
    Driver Class Name  - com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection Factory Class  – JDBCFactory
    Admin User ID (DQE)  –  database admin name
    Admin Password (DQE)  – database admin password
    User Mapping Type  – admin;user
    Step 2: Created an alias for this JDBC system, for example, test_JDBC_system.
    Step 3: Added user mapping.
    Search for my user ID in the User Mapping in User Admin section, click on “Edit”, and select the JDBC alias name “test_JDBC_system” in the system dropdown list, and then put database admin user name and database admin password in the fields “User” and “Password”, and click on “Save”.
    Step 4: Tested the connection.
    “Connection Test Through DQE” was successful, but “Connection Test for Connectors failed”. Error message was:
    Results
    Retrieval of default alias successful
    Connection failed. Make sure user mapping is set correctly and all connection properties are correct.
    Step 5: Created a JDBC stored procedure iView.
    Got an error message like this “Error connecting to backend application. Check your system and user mapping settings. Contact your system administrator if problem persists.”
    Step 6: Because we couldn’t successfully create JDBC iView, so we tried to created a Query iView instead.
    It showed me the system alias, and I could drill down all the way to the table level and put in my query, for example, SELECT cdb_admin.Land.Land FROM cdb_admin.Land (table name is “land” and the column name is also “land”, cdb_admin is the admin user). But it gave me an error when previewing it – “Query execution failed. Exception message: ”
    Here are our issues/thoughts:
    We don’t know how to do the user mapping, not sure what to put into “User” and “Password” fields.
    The documents saying these versions have the SQL Server Driver installed already, but we couldn’t see the “com.microsoft.jdbc.sqlserver.SQLServerDriver” under System Drivers in “JDBC connector” in SAP Visual Admin.
    In some document, it used “com.sap.jdbc.sqlserver.SQLServerDriver”, and we don’t see that in the system driver list either.
    We tried to deploy MS SQL driver 3 jar files msbase.jar, mssqlserver.jar, msutil.jar by adding a new driver under “JDBC connector” in SAP VA. We gave it a name “MSSQL”. But we don’t know if we referred to the SQLServerDriver class correctly by entering “Driver Class Name  - com.microsoft.jdbc.sqlserver.SQLServerDriver” when creating the JDBC system in the portal.
    It seems like we connected to the database server and tables when using Query iView, but why did we get this “Query execution failed. Exception message: ”? We tried to modify the query to “select land from land” too, but it didn’t work either, same error message. So is it really the SQL statement wrong? There is not much documentation on Query iView and can you give me some hints?
    Thanks very much..

    Hi,
    in "User" and "Password" field you need to give database administrator User-ID and Password.
    You just need to give proper Database url and Driver class name to access MS SQL thro JDBC system.
    Have you set the security settings for the database, check the <b>prerequsites</b> in the following link:
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/f5/eb516b0e6a11d7b84900047582c9f7/frameset.htm">Creating iViews for Databases</a>
    Hope it helps
    Regards,
    Vivekanandan

  • How to connect to External Database, if say SQL server, from Adobe LC

    Hi everyone,
    I have one application, which needs to save and load data from/to an external database,SQL server.I have no idea on how to implement this.But with my knowledge I managed to create DSs and using new data connection wizard, some how I managed to list the fields in the Data View.BUT i still worrying about the way i did is rigt or wrong?.. how can i save and load data to sql server from Adobe LC..Please help me
    Thanks,
    Vinod

    You created the data source on the app server which is the first step. Now you can use the JDBC service to query the database:
    http://livedocs.adobe.com/livecycle/8.2/wb_help/000632.html
    scott

  • How to connect to external database

    Hi all,
      Can any one help me out to connect to database from ABAP using the
    Exec sql...
    Endexec. statements..
      And also explain me whats use of DBCON table?. May be materials like things..
    Thanks in Advance,
    Ramkumar.K

    Hi,
    DBCON table is for Description of Database Connections.
    EXEC and ENDEXEC are used to fetch data from databse using Native SQL;
    See the following Documentation:
    Syntax Diagram
    EXEC SQL
    Syntax
    EXEC SQL [PERFORMING subr].
    ENDEXEC.
    Effect
    These statements define an area in an ABAP program in which one or more Native SQL statements are to be carried out. The area between EXEC and ENDEXEC is not completely checked by the syntax check. The statements entered there are passed to the Native SQL interface and processed there as follows:
    Almost all SQL statements that are valid for the addressed database system can be included between EXEC and ENDEXEC, in particular the DDL statements. These SQL statements are passed from the Native SQL interface to the database system largely unchanged. The syntax rules are specified by the database system, in particular the case sensitivity rules for database objects. If the syntax allows a separator character between individual statements, you can include several Native SQL statements between EXEC and ENDEXEC. Generally, the semicolon ( is used as the separator character.
    You can also include SAP-specific Native SQL language elements between EXEC and ENDEXEC. These statements are not passed directly from the Native SQL interface to the database, but are converted appropriately. These SAP-specific language elements are::
    Host variables
    Statements for cursor processing
    Database procedure calls
    Statements for establishing database connections
    All Native SQL statements bypass SAP buffering. Automatic client handling is not performed.
    System fields
    The statement ENDEXEC sets the system fields sy-subrc and sy-dbcnt. When using the addition PERFORMING, note that implicit cursor processing is carried out and the system fields are set for every read process.
    sy-subrc Meaning
    0 The statements between EXEC and ENDEXEC were executed successfully.
    4 The statements between EXEC and ENDEXEC were not executed. After implicit cursor processing with PERFORMING, sy-subrc always contains the value 4.
    The ENDEXEC statement sets sy-dbcnt to the number of table rows processed in the last Native SQL statement. After implicit cursor processing with PERFORMING, sy-dbcnt contains the total number of lines read.
    Note
    Programs with Native SQL statements are generally dependent on the database system used, so that they cannot be executed in all ABAP systems. This is especially true for the examples in this section, which was written for Informix database systems.
    Example
    Inserting two rows in the database table SCARR. If neither of these rows exists, sy-subrc is set to 0 by ENDEXEC and sy-dbcnt to 1. Otherwise, an exception is raised and handled.
    DATA: exc_ref    TYPE REF TO cx_sy_native_sql_error,
          error_text TYPE string.
    TRY.
        EXEC SQL.
          INSERT INTO scarr
                      (MANDT, CARRID, CARRNAME, CURRCODE, URL)
            VALUES ('000', 'FF', 'Funny Flyers', 'EUR',
                    'http://www.ff.com');
          INSERT INTO scarr
                     (MANDT, CARRID, CARRNAME, CURRCODE, URL)
            VALUES ('000', 'EF', 'Easy Flyers', 'EUR',
                    'http://www.ef.com');
        ENDEXEC.
      CATCH cx_sy_native_sql_error INTO exc_ref.
        error_text = exc_ref->get_text( ).
        MESSAGE error_text TYPE 'I'.
    ENDTRY.
    Regards,
    Anji

  • How to connect external database into BI source system?

    <Moderator Message: Please search before posting. This issue has already been discussed a lot of times. Additionally you might have a look at the online help>
    Dear SDN,
    I am working on BI 7.0 system.
    Client request is to connect the external database into source system.
    External database (different server) has installed the Sybase database.
    1.Is it possible ?
    2.What is the procedure for connectivity from BI end .
    3. which server port of external database(sybase databse) need tobe open for firewall policy.
    Thanks in advance
    Ravi
    Edited by: Siegfried Szameitat on Mar 9, 2009 1:23 PM

    Hi Ravindra,
                    Check here........
    <link farm removed by moderator>
    Thanks,
    Vijay.
    Edited by: vijay m on Mar 9, 2009 5:43 PM
    Edited by: Siegfried Szameitat on Mar 9, 2009 1:23 PM

  • Connection to an external database.

    Hi we r using native sql commands and are connecting to external database. As far as I know from the discussions here i thought that these sort of connections are maintained in the table dbcon. But i don't see any entries in that table.
    WHere as i could connect to that database succesfully and getting the records.
    The table name for the external system is NOVARTIS.TABLE_ADDRESS@ANK like this.
    Where could be that settings made.

    Try this Forum Thread:-
    1. In developer server you have to configure the tnsnames.ora. For doing this you should talk with a person who knows how to configure this file. In the register you should especify: protocol, host and port to connect to the other database system.
    2. Then, you enter a register in the DBCON table. In this entrie you especify user, password, database id (in my case I wrote ORA because i am connecting to an oracle database), and in the enviroment field you write the name or alias of the register in the tnsnames.ora
    3. In the abap program you use native sql sentences for connecting to the external database. This is an example:
    EXEC SQL.
    CONNECT TO :p_conexion AS 'C1'
    ENDEXEC.
    IF SY-SUBRC EQ 0.
    EXEC SQL.
    SET CONNECTION 'C1'
    ENDEXEC.
    EXEC SQL PERFORMING save_data.
    SELECT COD_CGE, COD_SAX, TO_CHAR(FECHA,'YYYYMMDD'),
    VALOR, HORA, TIPO, PAIS, SOCIEDAD
    INTO :wa_serv_aux
    FROM TEST_TABLE
    WHERE FECHA >= TO_DATE( :W_FEC1 , 'YYYY/MM/DD')
    AND FECHA <= TO_DATE( :W_FEC2 , 'YYYY/MM/DD')
    ENDEXEC.
    EXEC SQL.
    ROLLBACK
    ENDEXEC.
    EXEC SQL.
    DISCONNECT 'C1'
    ENDEXEC.
    In the form save_data i insert the work area into the internal table.
    And that`s all. The most important thing is to configurate the tnsnames.ora file on the server side.
    <i><b>Note:- One small suggestion, Before Posting Thread in SDN, search for the related topics in SDN forums and then post your thread, it would be helpfull for everybody.</b></i>
    Regards:-
    <b>Santosh</b>
    Message was edited by: Santosh (INDIA)

  • RFC XI JDBC to external database.... Get data in multiple rows

    Hi,
    We have been really struggling with this scenario. We have created a RFC that has 1 Import parameter (Order_ID) and table parameter (3 Columns: Order_ID, Partner_type, Partner_no).
    When we call this RFC in SAP, it should make a connection to external database via JDBC and get multiple row data for every Order_ID. We are not using Oracle Stored Procedure, instead we are using simple Select statement. Did all the mapping and configured correctly. However, we are getting short-dump when we execute RFC. When we checked in XI, it says " Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at "
    Has anyone tried getting multiple row information from external database(Oracle) using Select statement in XI ? IF so, can you pl let us know if we need to something different in Mapping ?
    Niranjan

    Niranjan,
    Check this blog of mine to see how the datatype for Synchronous Select should be constructed,
    https://weblogs.sdn.sap.com/pub/wlg/3928. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    If this looks good, a few checks
    1. Check the request inbound payload , i.e the RFC request in MONI. Is this as expected?
    2. Check the output of the request mapping and check if this is as expected.
    3. Check the response from JDBC, is this as per the datatype defined.
    4. Check the mapping from JDBC response to RFC response.
    To me this looks like an issue with the JDBC response structure.
    Meanwhile to understand how to test mapping, check blog of michal,
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    Regards
    Bhavesh

  • WebLogic Portal with Apache Derby

    Has anyone tried to use the Apache Derby database with WebLogic Portal?
    Kunal Mittal

    Hi Faisal,
    I have gone through the two links. Thanks.
    One of the link enables LDAP user and group access on Weblogic. Suppose we have an web application called DMS and a LDAP group called DMS, can we assume that after running your wlst code, the users in the DMS group in LDAP will be granted access to the web application DMS? When we have a hundred different groups, we will need to put a loop around your code to expose them to WLS. Is that the case? I do not think it will work though as the set* member functions will set the group for later get* member functions' call from that group. How does this work for more than one group?
    WLP and WebCenter both are based on WLS. Can I assume that the contents in the two links are applicable for WLP and WebCenter?
    When we create web applications, portlets and pages etc. on WLP and WebCenter, we will associate them with some LDAP groups. Is that how it works?
    Please advise,
    Thanks,
    Regards,
    Michael
    Edited by: user2766888 on 13/05/2010 18:02
    Edited by: user2766888 on 13/05/2010 18:08
    Edited by: user2766888 on 13/05/2010 18:11

  • Oracle Virtual Private Database and Weblogic.

    Hi All,
    I am using Oracle 11gR2 and weblogic 10.3.5.
    I would like to use Virtual Private Database feature in my project. I read the documentation and I understood the concept. I made a few tests on my dev environment and it seems to work fine.
    Now, I would like to use VPD with weblogic (we are also using Hibernate) as all my users connect to the database through weblogic.
    My question is how can get the name of my non-database users (so coming from weblogic) and automatically set them  to my context ?
    Many thanks for your help.

    Anyone on this one ?
    Many thanks !

  • Setting up the Weblogic portal with Oracle Database

    I am creating weblogic portal domain using oracle database
    a) At the “configure JDBC Data Source “ I have changed all database sources to oracle and before this I have created the weblogic/weblogic user id and required tables spaces also
    1) cgDataSource
    2) cgDataSouce –nonXA
    3) p13nDataSource
    4) portalDatasource
    5) portalDataSourceAlwaysXa
    6) portalDataSourceNeverXa
    b) Test JDBC Data Source
    for all the data sources test has passwd
    c) Run the database scripts run and created the objects
    and when I try to start startWebLogic.sh from portal domain
    I got the below errors looking for <Test "SELECT COUNT(*) FROM SYSTABLES"
    Best Regards
    RAJ
    <Nov 24, 2010 3:58:17 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource-nonXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource-nonXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource-nonXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource-nonXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource-nonXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "p13nDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "p13nDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "p13nDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "p13nDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "p13nDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "portalDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "portalDataSourceAlwaysXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "portalDataSourceNeverXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:20 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "portalDataSourceNeverXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:21 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "portalDataSourceNeverXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <LoggingService> <BEA-320400> <The log file /home/orawlp/Oracle/Middleware/user_projects/domains/portal01/servers/AdminServer/logs/portal01.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /home/orawlp/Oracle/Middleware/user_projects/domains/portal01/servers/AdminServer/logs/portal01.log00002. Log messages will continue to be logged in /home/orawlp/Oracle/Middleware/user_projects/domains/portal01/servers/AdminServer/logs/portal01.log.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:216:3eff:fe4e:9ac9:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.8.8.116:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "portal01" running in Development Mode>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>

    Hi,
    When i try to bring up the portal doman i am getting this errors :
    ================
    <Dec 3, 2010 7:23:29 PM SGT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'cgDataSource-nonXA' due t
    blogic.application.ModuleException: .
    weblogic.application.ModuleException:
    at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:290)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:59)
    Truncated. see log file for complete stacktrace
    Caused By: weblogic.common.ResourceException: weblogic.common.ResourceException: DataSource 'cgDataSource-nonXA' can not be c
    is non-transactional and so can not use XA-aware pool 'cgDataSource-nonXA'
    at weblogic.jdbc.common.internal.DataSourceManager.checkDataSource(DataSourceManager.java:236)
    at weblogic.jdbc.common.internal.DataSourceManager.checkDataSource(DataSourceManager.java:204)
    at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:278)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
    Truncated. see log file for complete stacktrace
    Caused By: weblogic.common.ResourceException: DataSource 'cgDataSource-nonXA' can not be created. It is non-transactional and
    t use XA-aware pool 'cgDataSource-nonXA'
    at weblogic.jdbc.common.internal.DataSourceManager.checkPoolConfig(DataSourceManager.java:434)
    at weblogic.jdbc.common.internal.DataSourceManager.checkDSConfig(DataSourceManager.java:389)
    at weblogic.jdbc.common.internal.DataSourceManager.checkDataSource(DataSourceManager.java:233)
    at weblogic.jdbc.common.internal.DataSourceManager.checkDataSource(DataSourceManager.java:204)
    at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:278)
    Truncated. see log file for complete stacktrace
    >
    ==================================
    Can I ignor this error or i have to fix ????
    Best Regards
    Raj

  • Need to add as a WSRP Connection in JDev for Weblogic Portal JSF Portlets.

    I am trying to register WLP 10.3.4 JSF Portlets as a WSRP connection in JDev Webcenter 11.1.1.6 Portal Framework application . The below are steps:
    -Created Simple WLP Application with JSF Portlets and deployed them on WLS 10.3.4 domain.
    -The WSDL url available is http://localhost:7003/TEST_WEB_PORTAL/producer?wsdl
    -Now Open JDev and created WCP Framwork app
    -Under Application Resource, right click on Connections -> New Connection -> WSRP Producer.
    -Click Next on step1 -> Enter WSDL URL on Step 2 and then click next on next 3 screens.
    -It tries to register but ended up with below exception:
    3-Dec-2012 12:48:03 oracle.adfdtinternal.model.portlet.wizards.registration.wsrp.WSRPProducerRegUtil registerProducer
    WARNING:
    oracle.portlet.client.persistence.PersistenceException: oracle.mds.core.ConcurrentMOChangeException: MDS-00165: metadata Object "/oracle/adf/portlet/WsrpPortletProducer0/portletDefs/portletPortletproducer/markupTypes/markupType0_texthtml.pxml" has changed
    MDS-00512: failure to create document /oracle/adf/portlet/WsrpPortletProducer0/portletDefs/portletPortletproducer/markupTypes/markupType0_texthtml.pxml because file C:\Oracle\PS5\mywork\testSR3-6514764665\mds\oracle\adf\portlet\WsrpPortletProducer0\portletDefs\portletPortletproducer\markupTypes\markupType0_texthtml.pxml already exists
         at oracle.portlet.client.persistenceimpl.mds.MDSPersistenceContext.commit(MDSPersistenceContext.java:473)
         at oracle.portlet.client.beanimpl.persistence.PersistenceBeanContext.commit(PersistenceBeanContext.java:128)
         at oracle.portlet.client.adapter.simple.SimpleAdapter.commit(SimpleAdapter.java:465)
         at oracle.adfinternal.model.portlet.manager.PortletProviderManager.commit(PortletProviderManager.java:1487)
         at oracle.adfinternal.model.portlet.manager.PortletProviderManager.registerPortletProvider(PortletProviderManager.java:1647)
         at oracle.adfinternal.model.portlet.manager.PortletProviderManager.registerPortletProvider(PortletProviderManager.java:597)
         at oracle.adfdtinternal.model.portlet.wizards.registration.wsrp.WSRPProducerRegUtil.registerProducer(WSRPProducerRegUtil.java:308)
         at oracle.adfdtinternal.model.portlet.wizards.registration.wsrp.WSRPProducerRegistrationWizard$1.doWork(WSRPProducerRegistrationWizard.java:863)
         at oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:161)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: oracle.mds.core.ConcurrentMOChangeException: MDS-00165: metadata Object "/oracle/adf/portlet/WsrpPortletProducer0/portletDefs/portletPortletproducer/markupTypes/markupType0_texthtml.pxml" has changed
    MDS-00512: failure to create document /oracle/adf/portlet/WsrpPortletProducer0/portletDefs/portletPortletproducer/markupTypes/markupType0_texthtml.pxml because file C:\Oracle\PS5\mywork\testSR3-6514764665\mds\oracle\adf\portlet\WsrpPortletProducer0\portletDefs\portletPortletproducer\markupTypes\markupType0_texthtml.pxml already exists
         at oracle.mds.core.UpdateableMOContent.constructConcurrentMOChangeException(UpdateableMOContent.java:1376)
         at oracle.mds.core.UpdateableMOContent.saveMOContent(UpdateableMOContent.java:1143)
         at oracle.mds.core.MDSTransaction.flushChangesToPTrans(MDSTransaction.java:851)
         at oracle.mds.core.MDSTransaction.internalCommit(MDSTransaction.java:2928)
         at oracle.mds.core.MDSSession.flushChanges(MDSSession.java:1022)
         at oracle.mds.core.MDSSession.flushChanges(MDSSession.java:850)
         at oracle.portlet.client.persistenceimpl.mds.MDSSessionWrapper.flushChanges(MDSSessionWrapper.java:61)
         at oracle.portlet.client.persistenceimpl.mds.MDSPersistenceContext.commit(MDSPersistenceContext.java:456)
         ... 10 more
    Caused by: oracle.mds.persistence.DocumentExistsException: MDS-00512: failure to create document /oracle/adf/portlet/WsrpPortletProducer0/portletDefs/portletPortletproducer/markupTypes/markupType0_texthtml.pxml because file C:\Oracle\PS5\mywork\testSR3-6514764665\mds\oracle\adf\portlet\WsrpPortletProducer0\portletDefs\portletPortletproducer\markupTypes\markupType0_texthtml.pxml already exists
         at oracle.mds.internal.persistence.file.Fil
    I have followed the steps given in the http://docs.oracle.com/cd/E26806_01/wlp.1034/e14235/chap_webcenter_interop.htm#BABGIIIJ for preventing User Authentication error by creating user of PortalSystemAdministrator group but did not help.
    Please let me know if anyone have faced this exception or any pointers.
    Thanks
    Kamal Gulati

    Hi,
    I tried creating a simple JSF portlet and I can able to register and it is working Fine, but my teammet got the same issue like you :) . While Analyzing what I found is , the location where we created the portlet in weblogic portal. If you created your portlet directly under WebContent folder then this issue is coming up, so try to create the portlet in a folder inside the WebContent folder, say create a folder with name portlets under webcontent and create the JSF portlet inside that portlets folder.
    Now start the server and register the same in WebCenter, you will not get that exception. I am going to raise a ticket with Oracle about this issue and get the root cause.
    Thanks
    Karthikeyan

  • Error while setting up Weblogic Portal(10.3.6) db connection

    HI All,
    I am a newbie to Weblogic Portal so kindly correct me if im wrong anywhere...
    I am trying to set up a new instance for Weblogic Portal 10.3.6
    While setting up a new domain i got the error below:
    CFGFWK-60850:  Test Failed!
    Later wheni tried running the command create_db.cmd, below is the error generated
    Kindly help me where am i going wrong
    D:\Oracle\Middleware\user_projects\domains\domain1>create_db.cmd
    database.properties=D:\Oracle\Middleware\user_projects\domains\domain1\database.properties
    Buildfile: D:\Oracle\Middleware\wlportal_10.3\p13n\db\build_createdatabase.xml
    init_props:
    appendDomainSqlAuth:
    init_tasks:
    setup_create_database_objects:
    create_database_objects:
         [echo] ***** Calling JDBCDataLoader ** to create database objects and insert seed data
    Warning: Reference createdb.classpath has not been set at runtime, but was found during
    build file parsing, attempting to resolve. Future versions of Ant may support
    referencing ids defined in non-executed targets.
    Warning: Reference cwiz.jars has not been set at runtime, but was found during
    build file parsing, attempting to resolve. Future versions of Ant may support
    referencing ids defined in non-executed targets.
         [java] Loading Database...
         [java]
         [java]
         [java] logFile=create_db.log
         [java] user=WEBLOGIC
         [java] password=********
         [java] url=jdbc:derby:weblogic_eval;create=true
         [java] files=D:\Oracle\Middleware\wlportal_10.3/p13n/db/derby/jdbc_index/jdbc.index,D:\Oracle\Middleware\wlportal_10.3/content-mgmt/db/derby/jdbc_index/jdbc.index,D:\Oracle\Middleware\wlportal_10.3/portal/db/derby/jdbc_index/jdbc.index,D:\Oracle\Middleware\user_projects\domains\domain1/security/jdbc.index
         [java] driver=org.apache.derby.jdbc.EmbeddedDriver
         [java] saltFile=D:\Oracle\Middleware\user_projects\domains\domain1/security/SerializedSystemIni.dat
         [java] prodDir=D:\Oracle\Middleware\wlportal_10.3
         [java] Processing file 'D:\Oracle\Middleware\wlportal_10.3\p13n\db\derby\jdbc_index\jdbc.index'
         [java] Files=
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/seq_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/p13n_drop_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/p13n_drop_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/p13n_drop_constraints.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/p13n_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/er_drop_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/er_drop_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/er_drop_constraints.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/er_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/bt_drop_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/bt_drop_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/bt_drop_constraints.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/bt_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/rdbms_security_store_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/seq_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/p13n_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/p13n_create_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/p13n_create_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/p13n_create_triggers.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/data/required/p13n_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/er_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/er_create_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/er_create_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/er_create_triggers.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/data/required/er_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/bt_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/bt_create_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/bt_create_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/bt_create_triggers.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/rdbms_security_store_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/data/required/bt_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/data/required/bt9_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/lease_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/p13n9_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/p13n9_drop_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/p13n9_drop_constraints.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/lease_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/p13n9_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/p13n9_create_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/data/required/p13n9_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/p13n102_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/p13n102_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/data/required/p13n102_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/p13n/db/derby/job_manager_create_tables.sql
         [java] Processing file 'D:\Oracle\Middleware\wlportal_10.3\content-mgmt\db\derby\jdbc_index\jdbc.index'
         [java] Files=
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm10_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cmv10_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm9_drop_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm9_drop_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm9_drop_constraints.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm9_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm_drop_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm_drop_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm_drop_constraints.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cmv9_drop_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cmv_drop_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cmv_drop_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cmv_drop_constraints.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cmv_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm_create_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm_create_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm_create_triggers.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cmv_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cmv_create_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cmv_create_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cmv_create_triggers.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/data/required/cmv_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm9_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm9_create_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm9_create_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm9_create_triggers.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/data/required/cm9_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cmv9_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cmv9_create_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/data/required/cm_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/data/sample/cm_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm10_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cmv10_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cmv102_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/derby/cm102_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/data/sample/cm102_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/content-mgmt/db/data/sample/cm102_update_system_data.sql
         [java] Processing file 'D:\Oracle\Middleware\wlportal_10.3\portal\db\derby\jdbc_index\jdbc.index'
         [java] Files=
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/wps_drop_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/wps_drop_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/wps_drop_constraints.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/wps_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/comm_drop_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/comm_drop_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/comm_drop_constraints.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/comm_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf10_drop_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf10_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf9_drop_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf9_drop_constraints.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf9_drop_views.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf9_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf_drop_views.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf_drop_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf_drop_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf_drop_constraints.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf_drop_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/wps_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/wps_create_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/wps_create_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/wps_create_triggers.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/data/required/wps_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf_create_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf_create_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf_create_views.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf_create_triggers.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/comm_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/comm_create_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/comm_create_indexes.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/comm_create_triggers.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/data/required/comm_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf9_drop_columns.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf9_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf9_create_fkeys.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf9_create_views.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/data/required/pf_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/data/required/pf9_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/data/required/bt_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/data/required/bt9_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf10_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/data/required/pf10_insert_system_data.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf102_create_tables.sql
         [java]     file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf102_drop_tables.sql
         [java] Error = SQLException when executing file file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf_create_tables.sql
         [java] Load Failed
         [java] java.lang.Exception: SQLException when executing file file:/D:/Oracle/Middleware/wlportal_10.3/portal/db/derby/pf_create_tables.sql
         [java]     at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:183)
         [java]     at com.oracle.cie.domain.jdbc.JDBCDataLoader.main(JDBCDataLoader.java:1321)
         [java] Caused by: java.sql.SQLException: Table/View 'L10N_INTERSECTION' already exists in Schema 'WEBLOGIC'.
         [java]     at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
         [java]     at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
         [java]     at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
         [java]     at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
         [java]     at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
         [java]     at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
         [java]     at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
         [java]     at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source)
         [java]     at org.apache.derby.impl.jdbc.EmbedStatement.executeUpdate(Unknown Source)
         [java]     at com.oracle.cie.domain.jdbc.JDBCDataLoader.loadData(JDBCDataLoader.java:749)
         [java]     at com.oracle.cie.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:167)
         [java]     ... 1 more
         [java] Caused by: java.sql.SQLException: Table/View 'L10N_INTERSECTION' already exists in Schema 'WEBLOGIC'.
         [java]     at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
         [java]     at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
         [java]     ... 12 more
         [java] Caused by: ERROR X0Y32: Table/View 'L10N_INTERSECTION' already exists in Schema 'WEBLOGIC'.
         [java]     at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
         [java]     at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.duplicateDescriptorException(Unknown Source)
         [java]     at org.apache.derby.impl.sql.catalog.DataDictionaryImpl.addDescriptor(Unknown Source)
         [java]     at org.apache.derby.impl.sql.execute.CreateTableConstantAction.executeConstantAction(Unknown Source)
         [java]     at org.apache.derby.impl.sql.execute.MiscResultSet.open(Unknown Source)
         [java]     at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
         [java]     at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
         [java]     ... 6 more
    BUILD FAILED
    D:\Oracle\Middleware\wlportal_10.3\p13n\db\build_createdatabase.xml:97: The following error occurred while executing this line:
    D:\Oracle\Middleware\wlportal_10.3\p13n\db\build_createdatabase.xml:104: The following error occurred while executing this line:
    D:\Oracle\Middleware\wlportal_10.3\p13n\db\build_createdatabase.xml:68: Java returned: -1
    Total time: 48 seconds
    ====================================================================================================
    ERROR!
    CALL TO ant -cp D:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar; -f D:\Oracle\Middleware\wlportal_10.3\p13n\db\build_createdatabase.xml FAILED!
    ====================================================================================================
    Looking forward for some inputs....
    Thanks in Advance,
    Varun Arora

    Strange, ran the same command after few hours and BUILD SUCCESSFUL 

Maybe you are looking for