Logging/debug  CMP generated SQL in WLS 7

Hi,
I wish to log the sql generated by weblogic for the CMP entities when they are
called within the application. Is there any mechanism to view/log the sql statements
generate in weblogic 7.0.
I have tried the following entry in the config.xml but it doesnt work
<ServerDebug JDBCConn="true" JDBCSQL="true" Name="insurent_server"/>
thanks
Vivek

"Markus" <[email protected]> wrote in message
news:[email protected]..
>
Hi!
Can someone provide me the steps to configure a simple one-way-SSLconnection
(certification) with WLS 7 SP4 on Windows 2000 using the developeredition?
>
A previous post with the same call stack and error had the following
suggestion.
According to the stack the SSL server thread failed to initialize at the WL
server
boot time because it could not read the private key. Make sure the key file
is
valid. The pem file with the key must starts with:
-----BEGIN ENCRYPTED PRIVATE KEY-----
Make sure the private key password that you pass on the command line is
correct:
-Dweblogic.management.pkpassword=<pwd>
Pavel.

Similar Messages

  • OBIEE generated SQL differs if it's a Physical Table or Select Table...

    Hi!
    I have some tables defined in the Physical Layer, which some are Physical Tables and others are OBIEE "views" (tables created with a Select clause).
    My problem is that the difference in the generated SQL for the same table, differs (as expected) whether it is a Physical Table or a "Select Table". And this difference originates problems in the returned data. When it a Physical Table, the final report returns the correct data, but when it is a Select Table it returns incorrect/incomplete data. The report joins this table with another table from a different Database (it is a join between Sybase IQ and SQL Server).
    This is the generated SQL in the log:
    -- Physical Table generated SQL
    select T182880."sbl_cust_acct_row_id" as c1,
    T182880."sbl_cust_acct_ext_key" as c2,
    T182880."sbl_cust_source_sys" as c3
    from
    "SGC_X_KEY_ACCOUNT" T182880
    order by c2, c3
    -- "Select Table" generated SQL
    select
         sbl_cust_acct_ext_key,
         ltrim(rtrim(sbl_cust_source_sys)) as sbl_cust_source_sys,
         sbl_cust_acct_row_id,
         sbl_cust_acct_camp_contact_row_id,
         ods_date,
         ods_batch_no,
         ods_timestamp
    from dbo.SGC_X_KEY_ACCOUNT
    As you may notice, the main difference is the use of Aliases (which I think that it has no influence in the report result) and the use of "Order By" (which I start to think that it its the main cause to return the correct data).
    Don't forget that OBIEE server is joining the data from this table, with data from another table from a differente database. Therefore, the join is made in memory (OBIEE Engine). Maybe in the OBIEE Engine the Order by is essential to guarantee a correct join...but then again, I have some other tables in the Physical Layer that are defined as "Select" and the generated SQL uses the aliases and the Order by clause...
    In order to solve my problem, I had to transform the "Select Table" into a "Physical Table". The reason it was defined as a "Select Table" was because it had a restriction in the Where Clause (which I eliminated already, althouth the performance wil be worse).
    I'm confused. Help!
    Thanks.
    FPG

    Hi FPG,
    Not sure if this is a potential issue for you at all, but I know it caused me all kinds of headaches before I figured it out. Had to do with "Features" tab Values in the database object's settings in the Physical Layer:
    Different SQL generated for physical table query vs. view object query?
    Mine had to do with SQL from View objects not being submitted as I would expect, sounds like yours has more to do with "Order By"? I believe I remembered seeing some Order By and Group By settings in the "Features" list. You might make a copy of your RPD and experiement around with setting some of those if they aren't already selected and retesting your queries with the new DB settings.
    Jeremy

  • View the generated sql for fetching a repository item

    Hi guys.
    I am interested in viewing the sql that ATG framework generates to fetch a primary repository item. I would like to use this generated sql, directly on the database and avoid me the pain of having to join multiple tables to get one repository item, basically looking to avoid having to write complex sql queries to fetch information for a repository item as ATG application would view it.
    I know there is a switch somewhere to turn it on, but an example would be great. Thanks!

    Turn on the logging debug on for the repository.
    Peace
    Shaik

  • Preview generated SQL

    Hi,
    Is there a way to view the SQL that would result from an Expression without actually executing the query via a session with logging turned on?
    regards
    George

    Here is my Code:
    ExpressionBuilder e = new ExpressionBuilder(MYClass.class);
    ReportQuery q = new ReportQuery(e);
    q.setReferenceClass(MYClass.class);
    q.dontRetrievePrimaryKeys();
    q.addAttribute(_MY_ATTR1);
    q.addAttribute(_MY_ATTR2, e.get(_MYREF).get(_MY_ATTR2));
    q.addSum(_OTHER_AGGREG_ATTRIB1);
    q.addSum(_OTHER_AGGREG_ATTRIB2);
    q.dontUseDistinct();
    Expression exp = e.get(_MY_ATTR1).equal(myInputVal_for_attr1);
    exp = exp.and(e.get(_MYREF).get(_MY_ATTR2).equal(myInputVal_for_attr2));
    oracle.toplink.publicinterface.DatabaseRow dbRow = new oracle.toplink.publicinterface.DatabaseRow();
    oracle.toplink.publicinterface.DatabaseSession dbSession = (oracle.toplink.publicinterface.DatabaseSession)MyAppServer.getTheServerSession();
    q.prepareCall(dbSession, dbRow);
    String sqlTrStr = q.getTranslatedSQLString(dbSession, dbRow);
    Problem:
    It works fine, but it includes ???? against all the given parameters.
    Upon debugging, I found that the dbRow was not filled and the query(q) always generates SQL with ????, whereas q.getCall().getParameters() holds all the parameters.
    Can any one please give me the final tip to get the custom SQl to solve this final step.
    Thanks
    A.T

  • Error: while generating SQL.java.rmi.ServerException:

    Hi:
    I tried the JGuru's "MusicStore" example. HOwever at Task 6 and 7 I am getting the following error:
    Error: while generating SQL.java.rmi.ServerException:
    RemoteException occured in server thread; nested exception is:
    * java.rmi.RemoteException: Error connecting to database;
    nested exception is:
    * SQL Exception: Failed to start database 'MusicStoreDB', see
    the next exception for details.
    Please make sure the database name/user/password is valid
    and the J2ee server and database are running.
    However when i check my database it is running perfectly:
    E:\>%j2ee_home%\bin\cloudscape -start
    Sun Feb 16 12:48:11 PST 2003: [RmiJdbc] Starting Cloudscape RmiJdbc Server Version
    Sun Feb 16 12:48:14 PST 2003: [RmiJdbc] COM.cloudscape.core.JDBCDriver registered i
    Sun Feb 16 12:48:14 PST 2003: [RmiJdbc] Binding RmiJdbcServer...
    Sun Feb 16 12:48:14 PST 2003: [RmiJdbc] No installation of RMI Security Manager...
    Sun Feb 16 12:48:14 PST 2003: [RmiJdbc] RmiJdbcServer bound in rmi registry
    Server:
    J2EE server listen port: 1050
    Naming service started:1050
    Binding DataSource, name = jdbc/DB2, url = jdbc:cloudscape:rmi:CloudscapeDB;crea
    te=true
    Binding DataSource, name = jdbc/Cloudscape, url = jdbc:cloudscape:rmi:Cloudscape
    DB;create=true
    Binding DataSource, name = jdbc/InventoryDB, url = jdbc:cloudscape:rmi:Cloudscap
    eDB;create=true
    Binding DataSource, name = jdbc/DB1, url = jdbc:cloudscape:rmi:CloudscapeDB;crea
    te=true
    Binding DataSource, name = jdbc/MusicStore, url = jdbc:cloudscape:rmi:MusicStore
    DB;create=false
    Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
    Binding DataSource, name = jdbc/XACloudscape__xa, dataSource = COM.cloudscape.co
    re.RemoteXaDataSource@1d88db7
    Starting JMS service...
    Initialization complete - waiting for client requests
    Binding: < JMS Destination : jms/Topic , javax.jms.Topic >
    Binding: < JMS Destination : jms/Queue , javax.jms.Queue >
    Binding: < JMS Cnx Factory : TopicConnectionFactory , Topic , No properties >
    Binding: < JMS Cnx Factory : QueueConnectionFactory , Queue , No properties >
    Binding: < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No properties
    >
    Binding: < JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No properties
    >
    Starting web service at port: 8000
    Starting secure web service at port: 7000
    J2EE SDK/1.3.1
    Starting web service at port: 9191
    J2EE SDK/1.3.1
    J2EE server startup complete.
    Can anyone suggest me a way out..plz

    what type of persistent u r using also post ur query if bmp and check with another example with cmp.

  • Weird behavior: PLSQL-generated SQL Report Region

    I am trying to tune my PLSQL-generated SQL Report Region. I put in some code to write the resulting query to a table. I turn it on, run the page, and then turn it off and look at the SQL. Instead of getting one query for each time I load the page, I get five. Trying to find out a bit more about why, I concatenate :APP_USER and to_char(sysdate, 'hh:mi:ss') to the resulting SQL. What I find is that four of the entries in the table have my ApEx dev username, and all of these writes are 3 seconds before the SQL generated under the app username is written!
    It probably goes without saying, but in all of the writes under my dev username, there are no session values and so any PLSQL if statements that depend on a session value act as if the session values are null. Also, any place I have :APP_ID show up as 4000 in those writes instead of the app number that shows up under my app username.
    Do you follow this?
    Well, on a hunch I copied the whole region back on to the page and disabled the original. This time, no writes with the dev username, only one select statement as originally expected.
    Is that wierd or what?
    Bill

    Scott, Your last comment - that was it. I should've paid more attention to the time. The minutes must have been off. I made sure to log out of the dev environment before I ran the page, but the writes under my dev login were occurring when I saved the region. I still don't see why that process causes four identical writes, but it's not that important.
    Thanks! Now I can to working on the real problem - improving my SQL.
    Bill

  • OBIEE 11g "WITH SAWITH0 AS" subquery factoring clause in the generated sql

    I've observed that the OBIEE 11g generates in the query log physical query using the WITH (sub-query factoring) clause to make the generated sql elegantly readable. This is great! Thanks for the developers. However I have some questions about this.
    __Background__
    Oracle Database' default behaviour is that if you have only one sub-query in the WITH section, it executes it as an in-line view and does not materialize it before the main sql is executed. If you have more than one, by default the database engine materializes all of them in the order of the definition. In some cases this can completely blow up the SGA and make the query never ending. To divert this behaviour you can apply two hints that work both in inline views and in sub-queries as well: /*+ MATERIALIZE */ and /*+ INLINE*/, however Analytics 11g does not seem to have hint capabilities at the logical table level, only at physical table level.
    If we go with the current defaults, developers not aware of this feature can bump into serious performance issues for the sake of some syntax candy at the generated sql level, I'm afraid.
    __Questions__
    * Is it possible to turn the Analytics server not to use WITH but use inline views instead?
    * Is there any way to sneak in some hints that would put the /*+ INLINE */ hint to the appropriate place in the generated sub-queries if needed
    * Does the Oracle Database have any initialization parameter that can influence this sub-query factoring behavior and divert from the default?

    The WITH statement is not added to make the query more elegant, it's added for performance reasons. If your queries take long to run then you may have a design issue. In a typical DWH DB SGA needs to be seriously increased since the queries ran are much larger and complex than on an OLTP DB. In any case you can disable the WITH statement in the Admin Tool by double clicking on your database object on the physical layer and going to the Features tab. The feature is called WITH_CLAUSE_SUPPORTED.

  • Display data in log file using PL/SQL procedure

    Just as srw.message is used in Oracle RDF Reports to display data in log file in Oracle Apps, similarly how it is possible to display data in log file using PL/SQL procedure?
    Please also mention the syntax too.

    Pl post details of OS, database and EBS versions.
    You will need to invoke the seeded FND_LOG procedure - see previous discussions on this topic
    Enable debug for pl/sql
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_LOG&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    HTH
    Srini

  • How to examine the generated SQL statement in Receiver JDBC Adapter

    I have been searching this forum how to display te generated sql statement (by the jdbc receiver adapter).
    The only suggestion is to use RWB, but I was unable to find any details about how to do so.
    Any help is appreciated

    Hi,
    To add, u can see the SQL Statements in Audit log of RWB.
    Select Message Monitoring-> Adapter Engine. choose ur entry and click on Details option button, u can see the SQL Statements in Audit Log.
    Regards,
    Sudharshan
    Message was edited by:
            Sudharshan Aravamudan

  • Debugging a custom realm in WLS 6.1

    Hi all. I'm trying to find out how to debug my custom realm. I first implemented
    the DebuggableRealm and put log.debug calls in my realm. I then set the realm.debug
    property to "true" when I start the server. Is that it? The javadocs on debugging
    are very sparse. I wasn't able to find a javadoc for weblogic.logging.LogOutputStream.
    I also found a DebugSecurityRealm attribute in the ServerDebug element in config.xml
    but am thinking this is old (from 5.X?).
    Are there any other documents I should be looking at? Thanks!
    jeff

    Thanks very much, Utpal.
    I still can't find the class (or even the package for that matter) at
    http://e-docs.beasys.com/wls/docs61/javadocs/index.html
    And that sort of mystifies me. Still, your answer solves my current problem.
    I still don't fully understand the ConfigurationMBean
    stuff as a whole, and how they get bound to a particular realm; i.e. Do I need
    to write a MyRealmConfigurationMBean, and if so, how do
    I bind it to MyRealm?
    Note that the code I originally cited casted a BasicRealm return type to a BasicRealmMBean;
    It's not immediately apparent why one is
    even castable to the other, since they are two interfaces that
    are not on the same inheritance line (I don't think).
    Thanks for your time. I appreciate your help.
    -chris
    Finally,
    "Utpal" <[email protected]> wrote:
    Check this out
    C:\opt\bea\wls61sp2\config\mydomain>javap weblogic.server.Server
    Compiled from Server.java
    public final class weblogic.server.Server extends java.lang.Object {
    public static final java.lang.String DEFAULT_PROTOCOL;
    public static final int DEFAULT_PORT;
    public static weblogic.management.configuration.ServerMBean getConfig();
    public static weblogic.management.configuration.ServerDebugMBean
    getDebug();
    public static weblogic.management.configuration.SecurityMBean
    getSecurityCon
    fig();
    public static void initialize();
    It's weblogic.server.Server class.
    -utpal

  • Can we change/Modify BI server generated Sql query and run to fetch data

    Hi,
    My client is saying that there is an option to modify bi server generated sql query to fetch data from source.
    question:As a request is made in presentation services, A dynamic sql query is generated and fetches data from source. all this is loggedin Nqlquery log..well can we change/modify the sql query generated and run modified sql query to fetch data from source. ., if so how? if not why?
    Thanks in advance
    Edited by: user10794468 on Jun 16, 2009 6:29 PM
    Edited by: user10794468 on Aug 12, 2009 6:58 PM

    Thank you so much for your reply..
    ..Can we also modify sql query generated by bi server to fetech data. the query's which we see in query log file..

  • How to see generated SQL when execute JPQL query using entity manager?

    I want to see generated SQL query in console or in a log file. How do I do that?
    I'm using GlassFish if it matters

    If you want to see SQL query that is generated from JPQL in GlassFish console you should do following:
    Log on admin console.
    Select 'Application Server' from tree, then select Logging tab and Log Levels sub-tab.
    Log level for 'Persistence' must be set to FINE or level with more verbosity.

  • How to monitor Log Backups for MS SQL Server

    Hello all.
    We are running Solution Manager 7.1 on SP Stack 10 and have downloaded the latest template content.
    When configuring the templates for DB monitoring, we noticed that although there is a metric that monitors the age of the last DB backup, there is no such metric to monitor the age of the last successful Log backup, or even a metric to alert us on a failed backup / log backup.
    Has any of you ever had to create a custom metric to monitor either the age of the latest successful log backup for MS SQL Server, or a custom metric to alert on failed backups / log backups?
    If yes, could you provide some instructions on how to create such a metric?
    Thank you in advance for your answers.
    Phevos

    Divyanshu, thank you for your answer.
    I had a similar idea to check the DB log file for failed log backups. The problem is that when I opened the log file from the dbacockpit, I found no errors/warnings for the days that our log backups did not run or failed. Here is a small part of that log to show you what I mean. In this example, the log backup was not running from 25th of July until the 28th of July when we fixed the log backups again, after receiving a disk space warning (log disk drive was almost full):
    The last successful log backup is mentioned in the log: "20140724091524    Backup    Log was backed up"
    Then as the days go by, there is no backup failure entries whatsoever to look for them in the log:
    20140725000023    spid18s    This instance of SQL Server has been using a process ID of 1304 since 5/27/2014 11:50:00 PM (local) 5/28/2014 6:50:00
    20140725000023    spid18s    AM (UTC). This is an informational message only; no user action is required.
    20140726000020    spid21s    This instance of SQL Server has been using a process ID of 1304 since 5/27/2014 11:50:00 PM (local) 5/28/2014 6:50:00
    20140726000020    spid21s    AM (UTC). This is an informational message only; no user action is required.
    20140727000023    spid22s    This instance of SQL Server has been using a process ID of 1304 since 5/27/2014 11:50:00 PM (local) 5/28/2014 6:50:00
    20140727000023    spid22s    AM (UTC). This is an informational message only; no user action is required.
    20140728000022    spid17s    This instance of SQL Server has been using a process ID of 1304 since 5/27/2014 11:50:00 PM (local) 5/28/2014 6:50:00
    20140728000022    spid17s    AM (UTC). This is an informational message only; no user action is required.
    Until finally on the 28th we restored the log backup functionality:
    20140728042814    Backup    Log was backed up. Database: XXX, creation date(time): 2010/12/22(16:45:29)
    So, I find it difficult to deduce an appropriate string to look for in the log, in order to generate an alert when my log backups are not working.
    Any suggestions? Am I looking at the wrong place perhaps?

  • Enable debug for pl/sql

    i want to enable the debug for pl/sql . and also the debug output stored in "FND_LOG_MESSAGES" table

    i want to enable the debug for pl/sql . Please see these docs.
    Debugging PL/SQL Programs Using DBMS_OUTPUT [ID 1005663.6]
    What Tools can be Used to Debug PL/SQL Program Units on the Database [ID 566668.1]
    How To Debug a PL/SQL Package Using JDeveloper [ID 300252.1]
    How To Obtain PL/SQL Object Information Regarding Debugging and Compilation [ID 793492.1]
    FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]
    and also the debug output stored in "FND_LOG_MESSAGES" table11.5.10/12: How To Enable and Retrieve FND Debug Log File Messages for Oracle iStore? [ID 789172.1]
    How to Obtain Debug Log in R12 [ID 787727.1]
    (Pics) How Can Trace and Debug Be Turned On For A Concurrent Request? [ID 759389.1]
    Thanks,
    Hussein

  • How can I turn off archive logs are being generated by system? (ugrent)

    Dear all,
    How can I turn off archive logs are being generated by system?
    Best Regards,
    Amy

    Sorry not to you @kamran its to OP.accidently it reply button pressed for you
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145750508 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 262144 bytes
    Database mounted.
    SQL> alter database noarchivelog
      2  /
    Database altered.
    SQL> Khurram

Maybe you are looking for

  • Installation failure-CUCM 8.6.2 on MCS7845i3

    Hello. I was trying to install CUCM 8.6.2 on MCS7845I3 server with correct memory and disk,good battery, up-to-date server firmware, but keep getting this error "Critical Error The hardware you are using is not supported for this product. Installatio

  • Bapi for GL/AR/AP posting

    Hi all, Is there any one bapi or F.M for GL,AR and AP posting. thanx in advance. rekha

  • Jpeg 2000 (jp2 format)

    I have a photo I scanned and want to crop, save on disk and eventually move to another program. Photoshop will not let me save as jpeg. It want to save as jpf or jp2. I don't know what this is or how to use it. How can I scan, save to disk as just a

  • BP for Portal for e-Recruitment 6 EHP 5

    Hi, I am installing e-Recruitment 6 EHP 5. For Portal 7.0 , I found that the I need to deploy 2 Business Packages as below:    1.   BP for Recruiter (ERP 6.0 EHP05) : BP ERP RECRUITER 1.51      2.   BP for Recruiting Administrator (ERP 6.0 EHP0) : BP

  • Skype number - I have a skype number but when i ca...

    I have a skype number and unlimited skype out credit. but when i call someone. it shows a wierd 617 number whereas my skype phone num is 202-xxx-xxxx. why is this happening and how can i fix it so that people i call see my skype purchased number?