Problems wih statement

I did this test:
string sql_Stmt = "INSERT INTO MY_TEST VALUES ('Canadá')";
stmt = my_connection->createStatement (sql_Stmt);
stmt->executeUpdate();
Perfect, my program runs without errors!!
But, when I opened my database, I saw strange characters into
in MY_TEST table.
I have a table 'MY_TEST' with a column 'NAME' as VARCHAR2(255).
When I try to insert the word 'Canadá', the result is wrong:
ORIGINAL WORD : Canadá
INSERTED WORD : Canad�
Why ???
Tks!

Connect to your DB as sysdba from Sql*Plus and execute
SYS@utf SQL> select * from nls_database_parameters
  2  where parameter in('NLS_LANGUAGE','NLS_TERRITORY','NLS_CHARACTERSET');
PARAMETER                      VALUE
NLS_LANGUAGE                   AMERICAN
NLS_TERRITORY                  AMERICA
NLS_CHARACTERSET               AL32UTF8
SYS@utf SQL>                                                                 On the Client machine, at OS level, before running your application
$ export NLS_LANG=AMERICAN_AMERICA.AL32UTF8 (Unix/Linux)
C:\> set NLS_LANG=AMERICAN_AMERICA.AL32UTF8 (Windows)
of course change values with yours.

Similar Messages

  • Hello!, my name is jan and i am using lightroom 2 for many years. I have an original set-up disk with a 24 digit serial number. I had never problems wih installation of lightroom. suddenly lightroom refuses to start when I try to from a picture i have tak

    Hello!, my name is jan and i am using lightroom 2 for many years. I have an original set-up disk with a 24 digit serial number. I had never problems wih installation of lightroom. suddenly lightroom refuses to start when I try to from a picture i have taken with my nikon D500 and transferred to WINDOWS 8.1.  i have tried to re-install lightroom : the procedure asks for the serieal number , but refuses to accept the number that always worked. PLEASE help!!  jan

    If you are certain you have the right serial number, there really isn't much we can help you with here. You might try downloading and installing the last version of Lightroom 2. It will be the trial version, but when the trial screen appears there is an option to indicate that you have a serial number. Incidentally, Lightroom serial numbers start with the first four digits being 1160.
    Adobe - Lightroom : For Windows : Adobe Photoshop Lightroom 2.7 - English, French, German

  • Hi, I have a problem wih Photoshop. I am trying to press the buttons but they don't work at all. Also the program are not closed. How can i fix this? FYI, Illustrater is working normally.

    Hi, I have a problem wih Photoshop. I am trying to press the buttons but they don't work at all. Also the program are not closed. How can i fix this? FYI, Illustrater is working normally.

    You have not provided any useful technical information like system specs, error messages or whatever. We don't even know your exact product version.
    Mylenium

  • How do I solve the problem that states: An error occurred while creating the backup folder" on Time Machine

    How do I solve the problem that states: An error occurred while creating the backup folder" on Time Machine

    Please carefully read and also book mark:
    Time Machine Troubleshooting
    Time Machine FAQs

  • Problem using state diagram in labview 8.6

    Hi all,
    I have a state diagram toolkit which come with lv7.1.
    But after I install in lv8.6 folder, it has a problem.
    I cannot modify the diagram that I create in lv7.1 before.
    Thanks.
    robert
    Solved!
    Go to Solution.

    Hi Robert,
    At the moment I'm pulling 12 hour days just to keep up with the paid LabVIEW work I have, so I'm afraid that if you wait for me to put this code together for you, you may be waiting a long time. 
    However, if you follow through with the tutorial I posted as well as the tutorial installed with the documentation installed along with the Statechart module it should really help you. 
    To make a simple statechart diagram is really not much more complicated than doing the same with the older tool.  
    A page that shows a direct comparison between the old tool and the new can be found here:  http://zone.ni.com/devzone/cda/tut/p/id/6194
    There is also another example you can open here:  http://zone.ni.com/devzone/cda/epd/p/id/5437
    Good luck. 
    Patrick Allen

  • Small problem: SQL statement in JSP

    Hello, I have the following problem: I have an SQL-expression like this:
    SELECT * FROM tablename WHERE ...
    In the WHERE clausule I have to refer to a variable, like this:
    String varname = "abcde"
    "SELECT * FROM tablename WHERE attribute = varname";
    This doesn't work, also when I put the " before the referral to varname. In that way I get an error that there is a semicolon expected...
    Can anybody help me with this ??
    Thanx, Erik.

    String varname = "abcde";
    "SELECT * FROM tablename WHERE attribute = ' "+ varname + " ' ";
    Since u are passing a string value from outside it needs to be enclosed in single coats....use the select statement like shown above it will work....

  • Javascript alert problem - select state

    I am trying to validate my form with javascript. I'm having
    trouble with my state field. If the user selects a state javascript
    alerts the following message: "SELECT ONE is not a valid choice.
    Please choose your state." I want the alert message to pop up if
    select one is selected as a state. How do I fix this problem?

    pqer wrote:
    > I am trying to validate my form with javascript. I'm
    having trouble with my
    > state field. If the user selects a state javascript
    alerts the following
    > message: "SELECT ONE is not a valid choice. Please
    choose your state." I want
    > the alert message to pop up if select one is selected as
    a state. How do I fix
    > this problem?
    >
    >
    >
    > <script language="javascript"
    type="text/javascript">
    >
    > // check to see if the form is blank
    > function validForm(contactUs) {
    >
    >
    > if(contactUs.state.value != "SELECT ONE") {
    > alert("SELECT ONE is not a valid choice. Please choose
    your state.")
    > contactUs.state.focus()
    > return false
    > }
    if(!contactUs.state.selectedIndex) {
    alert("SELECT ONE is not a valid choice. Please choose your
    state.");
    contactUs.state.focus();
    return false;
    Mick
    >
    > </script>
    >

  • Weblogic JTA timeout and PreparedStatement cache problem (Closed Statement)

    Hello,
    I am facing up a problem using a Weblogic connection pool with a PreparedStatement.
    Here is the environement :
    - Weblogic application server 10.3
    - JDBC connection pool with Oracle Thin driver (from server library) - all parameters by default i.e. StatementCache size = 10
    - JTA transaction timeout = 30s
    The problem is : if a prepared statement ends because of a JTA timeout, I receive the following stack exception/ stack trace
    java.sql.SQLException: The transaction is no longer active - status: 'Rolling Back. [Reason=weblogic.transaction.internal.TimedOutException: Transaction timed out after 33 seconds
    BEA1-000D8AE7230EFAA3EDC9]'. No further JDBC access is allowed within this transaction.
    at weblogic.jdbc.wrapper.JTSConnection.checkIfRolledBack(JTSConnection.java:178)
    at weblogic.jdbc.wrapper.JTSConnection.checkConnection(JTSConnection.java:188)
    at weblogic.jdbc.wrapper.Connection.preInvocationHandler(Connection.java:92)
    at weblogic.jdbc.wrapper.Connection.clearCachedStatement(Connection.java:814)
    at weblogic.jdbc.wrapper.PreparedStatement.clearCachedStatement(PreparedStatement.java:1357)
    and then, if we try to re-execute immediately the same operation (*same statement* but new request, new thread, new JTA transaction ...) we receive without delay the following exception :
    java.sql.SQLException: Closed Statement
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:403)
    It seems like a bug in the caching mechanism of Weblogic, the 1st stack trace shows method from the statement cache implementation, I presume weblogic is trying the clear the statement from the cache after the iniitial TimedOutException (SQLException), but as the JDBC connection is unusable at this point, the clearing fails and the statement remains in the cache but is physically closed by JDBC.
    1st question, why weblogic does need to call JTSConnection.checkConnection() for clearing a statement from its internal cache, it is a pure java memory operation isnt'it ?
    2nd question : How to solve the problem without setting the StatementCache size to 0 (I tried, it solves the problem)? I don't want to disable completely the Weblogic statement caching, I have a small PreparedStatement called very frequently.
    Thanks for any help

    The main issue is that the transactional context that is supposed to underlay the JDBC code being executed,
    has gone away. Indeed, any DBMS changes that may have been made by your code so far, have been rolled
    back and are gone. Your code should not be trying to continue JDBC as normal, and WebLogic is trying to stop
    you. The control flow should go back up to the location where the transaction was initiated, so as to restart from
    the beginning if that is what is desired, including getting a new JDBC connection and remaking all the statements
    etc.
    HTH,
    Joe
    Edited by: Joe Weinstein on Dec 3, 2010 9:12 AM

  • Problems with statement cache using OCI

    Hello!
    We recently changed our program to use statement cache, but we found a problem and not yet a solution.
    We have problems in this situation:
    OCIEnvCreate();
    OCIHandleAlloc();
    OCILogon2(..... OCI_LOGON2_STMTCACHE);
    OCIStmtPrepare2("CREATE TABLE db_testeSP (cod_usuario INTEGER, usuario CHAR(20), dat_inclusao DATE)")
    OCIStmtExecute();
    OCIStmtRelease(... OCI_DEFAULT);
    OCIStmtPrepare2("INSERT INTO db_testeSP (1,\'user\',CURRENT_DATE");
    OCIStmtExecute();
    OCIStmtRelease(... OCI_DEFAULT);
    OCIStmtPrepare2("SELECT * FROM db_testeSP");
    OCIStmtExecute();
    OCIStmtRelease(... OCI_DEFAULT);
    OCIStmtPrepare2("DROP TABLE db_testeSP");
    OCIStmtExecute();
    OCIStmtRelease(... OCI_DEFAULT);
    OCIStmtPrepare2("CREATE TABLE db_testeSP (cod_usuario INTEGER, usuario CHAR(20), idade INTEGER, dat_inclusao DATE)");
    OCIStmtExecute();
    OCIStmtRelease(... OCI_DEFAULT);
    OCIStmtPrepare2("INSERT INTO db_testeSP (1,\'user\',20,CURRENT_DATE");
    OCIStmtExecute();
    OCIStmtRelease(... OCI_DEFAULT);
    OCIStmtPrepare2("SELECT * FROM db_testeSP");
    OCIStmtExecute();
    OCIStmtRelease(... OCI_DEFAULT);
    On the second Select (wich is in bold), returns -1 from Execute, and if I get the error with OCIErrorGet I have: ORA-00932 - inconsistent datatypes
    Researching I discovered that this is statement cache problem, is there a way to clear the cache of one table ? I'm asking this because I could clear whenever there is a DROP TABLE or ALTER TABLE instruction (but I don't know what statements will need to be cleared from the cache). I can't clear all the cache because I may have other statements from other tables on the cache.
    This situation above is just an example, but I think that this will cause other problems too.
    Our program is a gateway from the main program and database, so I don't know the SQL instructions before executing. How can we resolve this problem?
    I have tested this issue with Oracle 10g (10.2.0.4.0) and 11g (11.2.0.1.0) both 64 bits and the result is the same (the OCI is version 11.2.0).
    We appreciate any help.
    Thanks in advance,
    Daniel

    After long time searching for answers, apparently this is expected to happen and the program should not use Statement caching in this situation.
    I found this on an Oracle document (Tuning Data Source Connection Pools - 11g Release 1 (10.3.6)) and we will need to review the use of statement caching.
    Stay as a tip for others who might be in the same situation.

  • SCOM 2012 R2 Continued Problems with State Widget

    Hi All,
    Just want to see if anyone is seeing problems with the state widget in R2. Confirmed that if the criteria selection page is left blank, that the widget will render, if anything is selected it just loads and loads and loads finally with an error (follows,
    first). Corresponding error in event log (follows, second). I thought this was resolved with UR4?
    Error in console===============
    Microsoft.EnterpriseManagement.Common.UnknownDatabaseException:
    The query processor ran out of internal resources and could not produce a query
    plan. This is a rare event and only expected for extremely complex queries or
    queries that reference a very large number of tables or partitions. Please
    simplify the query. If you believe you have received this message in error,
    contact Customer Support Services for more information.
       at
    Microsoft.EnterpriseManagement.Common.Internal.ServiceProxy.HandleFault(String
    methodName, Message message)
       at
    Microsoft.EnterpriseManagement.Common.Internal.EntityObjectsServiceProxy.GetRelatedManagedEntitiesByManagedEntityTypesAndCriteriaWithInstanceQueryOptions(IList`1
    parentManagedEntityIds, Boolean recurse, IList`1 managedEntityTypeIds, IList`1
    managedEntityBaseTypeIds, IList`1 criterias, String languageCode,
    InstanceQueryOptions instanceQueryOptions)
       at
    Microsoft.EnterpriseManagement.InstancesManagement.GetRelatedObjectsInternal[T](ICollection`1
    instanceIds, ICollection`1 criteriaCollection, TraversalDepth traversalDepth,
    ObjectQueryOptions queryOptions)
       at
    Microsoft.EnterpriseManagement.Management.DataProviders.ManagedEntityProvider.GetContainedManagedEntities(IDataObjectCollection
    targetEntities, ICollection`1 recursionTypeNames, ICollection`1 baseTypeNames,
    String criteriaString, List`1 valueDefinitions, List`1 sortValueDefinitions,
    String typePropertyName, String typeWithIconPropertyName, Boolean
    propertyCollectionRequested)
       --- End of inner exception stack trace ---
       at Microsoft.EnterpriseManagement.Presentation.DataAccess.DataProviderCommandMethodInvoker.Invoke()
       at
    Microsoft.EnterpriseManagement.Monitoring.DataProviders.RetryCommandExecutionStrategy.Invoke(IDataProviderCommandMethodInvoker
    invoker)
       at Microsoft.EnterpriseManagement.Presentation.DataAccess.DataProviderCommandMethod.Invoke(CoreDataGateway
    gateWay, DataCommand command)
       at
    Microsoft.EnterpriseManagement.Presentation.DataAccess.CoreDataGateway.ExecuteInternal[TResult](DataCommand
    command)
       at Microsoft.EnterpriseManagement.Presentation.DataAccess.CoreDataGateway.<ExecuteAsync>b__0[TResult](<>f__AnonymousType0`1
    data)
    Error in Event Log==============
    GetRelatedManagedEntitiesByManagedEntityTypesAndCriteriaWithInstanceQueryOptions
    for session ID uuid:9078152d-9ff1-4c68-a997-c8088a16a34c;id=5.<o:p></o:p>
    Exception
    message: The creator of this fault did not specify a Reason.<o:p></o:p>
    Full
    Exception:
    System.ServiceModel.FaultException`1[Microsoft.EnterpriseManagement.Common.UnknownDatabaseException]:
    The creator of this fault did not specify a Reason. (Fault Detail is equal to
    The query processor ran out of internal resources and could not produce a query
    plan. This is a rare event and only expected for extremely complex queries or
    queries that reference a very large number of tables or partitions. Please
    simplify the query. If you believe you have received this message in error,
    contact Customer Support Services for more information.).<o:p></o:p>
     <o:p></o:p>

    I am so sorry for my mistake. Below is the url.
    http://blogs.technet.com/b/scom_atlas/archive/2013/10/22/scom-2012-sp1-ur4-is-out.aspx
    Juke Chou
    TechNet Community Support

  • ESS Configuration problem - Salary statement

    I have configured the ESS as per the documentations.
    We have ECC 6.0 with EA-HR SP03 and XSS SP6.
                The following JCO connections are all setup to ECC 6.0 back end and  are pinging and tested successfully, even though not all are required.
                SAP_R3_Financials_MetaData  
                SAP_R3_HumanResources  
                SAP_R3_HumanResources_Metadata  
                SAP_R3_SelfServiceGenerics
                SAP_R3_SelfServiceGenerics_MetaData 
                SAP_R3_SelfServiceGenerics_MetaDataFIN 
                SAP_R3_SelfServiceGenericsFIN 
                SAP_R3_Travel  
                SAP_R3_Travel_MetaData
               WD_MODELDATA_DEST
                WD_RFC_METADATA_DEST
                WD_RSDAS_MODELDATA_DEST 
            WD_RSDAS_RFC_METADATA_DEST.
    The System Aliases  SAP_ECC_HumanResources and SAP_WebDynpro_XSS are defined with WAS properties.
               There are no authorization issues as the user is SAP_ALL at ECC and superuser at the portal.
    Employee search and Maintain own data  services are working fine with default settings. 
    But while trying to view the Salary Statement (Paycheck Inquiry Service) the error below comes up.
    The full exception chain is as below.
    java.lang.ArrayIndexOutOfBoundsException: -1
            at com.sap.mw.jco.JCO$Record.getString(JCO.java:12623)
            at com.sap.aii.proxy.framework.core.JcoBaseTypeData.getElementValueAsString(JcoBaseTypeData.java:669)
            at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.getAttributeValueAsString(DynamicRFCModelClass.java:409)
            at com.sap.xss.hr.rep.model.rfwmodel.Hrxss_Ser_Rfw_Rfc_Get_Form_Output.getHeight(Hrxss_Ser_Rfw_Rfc_Get_Form_Output.java:179)
            at com.sap.xss.hr.rep.fcrfw.FcRepFramework.callRfcGetForm(FcRepFramework.java:395)
            at com.sap.xss.hr.rep.fcrfw.FcRepFramework.processFollowingActions(FcRepFramework.java:484)
            at com.sap.xss.hr.rep.fcrfw.FcRepFramework.callRfcExecAction(FcRepFramework.java:378)
            at com.sap.xss.hr.rep.fcrfw.FcRepFramework.initModel(FcRepFramework.java:292)
            at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFramework.initModel(InternalFcRepFramework.java:256)
            at com.sap.xss.hr.rep.fcrfw.FcRepFrameworkInterface.initModel(FcRepFrameworkInterface.java:136)
            at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFrameworkInterface.initModel(InternalFcRepFrameworkInterface.java:198)
            at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFrameworkInterface$External.initModel(InternalFcRepFrameworkInterface.java:258)
            at com.sap.xss.hr.rem2.selection.VcRem2Selection.onInit(VcRem2Selection.java:245)
            at com.sap.xss.hr.rem2.selection.wdp.InternalVcRem2Selection.onInit(InternalVcRem2Selection.java:249)
            at com.sap.xss.hr.rem2.selection.VcRem2SelectionInterface.onInit(VcRem2SelectionInterface.java:161)
            at com.sap.xss.hr.rem2.selection.wdp.InternalVcRem2SelectionInterface.onInit(InternalVcRem2SelectionInterface.java:144)
            at com.sap.xss.hr.rem2.selection.wdp.InternalVcRem2SelectionInterface$External.onInit(InternalVcRem2SelectionInterface.java:220)
            at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:563)
            at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:437)
            at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:195)
            at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
            at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
            at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
            at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
            at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:429)
            at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:345)
            at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:668)
            at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:268)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:725)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:661)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:227)
            at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:150)
            at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
            at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:739)
            at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:208)
            at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1240)
            at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:340)
            at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:538)
            at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:582)
            at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:811)
            at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
            at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
            at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:137)
            at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:344)
            at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
            at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:298)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:677)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:227)
            at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:150)
            at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:56)
            at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:47)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Could you please help me out.
    thanks & regards
    K. Muhammed Ali

    Mohammed,
    Did you ever get an answer to this ESS problem? We are having the same problem now.
    Thanks,
    Dave

  • Duplex report problem - report states duplex but prints simplex

    The report states to run as duplex.  The printer is a duplex printer but by default set to be simplex.  Other prints such as Word work as duplex.
    I have tried to save the report with the printer settings as duplex but this has to be saved as a custom type and I presume the default is loaded when the report is run.
    Does anybody have any idea how I can associate the report with the custom printer setup or another resolution to this problem?

    CR uses the default printer settings. Depends on the version of CR though as to what can and can't be used. Most don't have an option for that mode though.

  • Problem wih analysis authorization for two scenarios on same data provider

    Dear all,
    I am looking for a solution on the following authorization scenario (using the new analysis authorization). Unfortunately everything that I tried did not work out as expected:
    User A is allowed to manually access query 1 (based on cube A) with authorization on all sites A-Z
    The same user A shall get an email distribution automatically (derivation of the filter in the query out of the authorization) for query 2, which is as well based on cube A, but this time the authorization shall be limited only to site A.
    As both queries are based on the same infoobject (0PLANT) and the same infoprovider (0TCAIPROV) I always get the result for all sites A-Z. The 0TCAACTVT is in both cases 03 (display), so I have no chance to distinguish between reporting and email distribution.
    Probably the only chance would be to derive the values for the email distribution scenario not from the authorization directly, but using a customer exit to fill the filter - but I would prefer a "standard" solution...
    Any ideas??
    Thanks,
    Andreas

    Dear Andreas,
    Before give you an alternative for you problem, Iu2019d like to comment the combining authorization concept:
    http://help.sap.com/saphelp_nw70/helpdata/EN/46/98cd87f37d19ace10000000a11466f/frameset.htm
    For this reason I suggest you which combing restriction through authorization and query filter. For query 2 try to use in 0PLANT characteristic the single value u201Csite Au201D, this restriction give you only authorization for see this value.
    Otherwise, you have to use customer exit.
    I hope that alternative help you to find a solution,
    Luis

  • Problem with statement after upgrading to 11g

    Hello,
    We recently upgraded to 11g from 9i and one of our statements we routinely use no longer works. The statement is:
    delete from ALLEMPLOYEES x where exists( (select * from ALLEMPLOYEES where email_id=x.email_id) minus (select * from X_ALLEMPLOYEES where email_id=x.email_id));
    This statement deletes no rows from the ALLEMPLOYEES table. When we run this statement as a check:
    (select * from ALLEMPLOYEES) MINUS (select * from X_ALLEMPLOYEES);
    We find many rows produced. Why would the delete fail now? We have colleagues still using 9i and use this same delete statement and it works for them with no trouble.

    Do you have proper indexes?
    SQL> select  *
      2    from  v$version
      3  /
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL> create table emp1 as select * from emp where deptno != 30
      2  /
    Table created.
    SQL> create index emp1_idx_comm on emp1(comm)
      2  /
    Index created.
    SQL> create index emp_idx_comm on emp(comm)
      2  /
    Index created.
    SQL> explain plan for
      2  delete emp e
      3    where exists(
      4                  select  *
      5                    from  emp
      6                    where comm = e.comm
      7                 minus
      8                  select  *
      9                    from  emp1
    10                    where comm = e.comm
    11                )
    12  /
    Explained.
    SQL> @?\rdbms\admin\utlxpls
    PLAN_TABLE_OUTPUT
    Plan hash value: 1994471334
    | Id  | Operation              | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | DELETE STATEMENT       |              |     1 |    28 |     9  (34)| 00:00:01 |
    |   1 |  DELETE                | EMP          |       |       |            |          |
    |   2 |   NESTED LOOPS         |              |     1 |    28 |     9  (34)| 00:00:01 |
    |   3 |    VIEW                | VW_SQ_1      |    14 |   182 |     8  (25)| 00:00:01 |
    |   4 |     MINUS              |              |       |       |            |          |
    |   5 |      SORT UNIQUE       |              |    14 |   532 |            |          |
    PLAN_TABLE_OUTPUT
    |   6 |       TABLE ACCESS FULL| EMP          |    14 |   532 |     3   (0)| 00:00:01 |
    |   7 |      SORT UNIQUE       |              |     8 |   696 |            |          |
    |   8 |       TABLE ACCESS FULL| EMP1         |     8 |   696 |     3   (0)| 00:00:01 |
    |*  9 |    INDEX RANGE SCAN    | EMP_IDX_COMM |     1 |    15 |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       9 - access("VW_COL_1"="E"."COMM")
           filter("E"."COMM" IS NOT NULL)
    PLAN_TABLE_OUTPUT
    Note
       - dynamic sampling used for this statement (level=2)
    26 rows selected.
    SQL> explain plan for
      2  delete emp
      3    where comm is not null
      4     and comm not in (
      5                      select  comm
      6                        from  emp1
      7                        where comm is not null
      8                     )
      9  /
    Explained.
    SQL> @?\rdbms\admin\utlxpls
    PLAN_TABLE_OUTPUT
    Plan hash value: 123997034
    | Id  | Operation          | Name          | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | DELETE STATEMENT   |               |     3 |    84 |     1   (0)| 00:00:01 |
    |   1 |  DELETE            | EMP           |       |       |            |          |
    |   2 |   NESTED LOOPS ANTI|               |     3 |    84 |     1   (0)| 00:00:01 |
    |*  3 |    INDEX FULL SCAN | EMP_IDX_COMM  |     4 |    60 |     1   (0)| 00:00:01 |
    |*  4 |    INDEX RANGE SCAN| EMP1_IDX_COMM |     1 |    13 |     0   (0)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
       3 - filter("COMM" IS NOT NULL)
       4 - access("COMM"="COMM")
           filter("COMM" IS NOT NULL)
    Note
       - dynamic sampling used for this statement (level=2)
    22 rows selected.
    SQL> SY.

  • CATS report  RCATSP01:  Problem with statement IMPORT FROM MEMORY ID.

    Hi Guys,
    I am trying to create a Z custom report using SAP template RCATSP01. In template report there is an IMPORT statement as below.
    IMPORT icatsd
           catsfields
           fieldtab
    FROM MEMORY ID 'LR2'.
    When I run the report in debug mode, I found there is no data in ICATSD, CATSFIELDS & FIELDSTAB.
    What should I do to get the data in these internal tables.
    Thanks,
    Mini

    I don't think this report is meant to be used as a stand-alone report; it's called within CATS time entry (e.g. CAT2 when user select print time sheet) which would export the info to 'LR2' memory prior to calling this report.

Maybe you are looking for