Setting Scan off for session

Hi.
I am trying to insert some encrypted data into a table. With scan set to ON (default)
the data get slightly changed. This is of course not acceptable.
By testing using PL/SQL console and inserting manually I see the same.
But when I set the scan to off (Set Scan OFF) it works fine.
My question is how do I do this using the java.sql.Connection object ?
I tried setting the
java.sql.Statement
statement.setEscapeProcessing
Any ideas?
Thanks in advance
Kjetil
null

Hi.
Yes I think Set Scan Off is PL/SQL thing. (someone correct me if I am wrong)
In any case, it set the translation of special characters to off.
This is a property on the PL/SQL session that solves my problem. I just need to set the same on my session which the Connection object represents?
The question basically is how do you execute SET commands on the connection. E.g. Connection provides a convinent method for AutoCommit, on/off. But I haven't found any similar method for setting the scan off.
Anybody?
Thanks
Kjetil

Similar Messages

  • Execute "set scan off" from vb 6.0 adodb connection

    Hi,
    We are trying to execute "set scan off" from vb - but it throws an error like missing or invalid option.
    We also tried clubbing two statements like - "set scan off;insert into table_name values...;" but still the errr is same,
    We are using adodb connection object's execute method.Rest all ddl and dml are working fine. Any help appreciated.

    P. Forstmann wrote:
    I don't think you can run it from an OCI/ODBC/JDBC database session.No thinking required. Quite simply, you can't run SQL*Plus commands through an ODBC connection.

  • Using SET SCAN OFF on PRO*C

    How can I implement the SQL Plus command SET SCAN OFF (or SET DEFINE OFF) on my PRO*C code? Thanks a lot.

    It is entirely likely that I'm missing something, but why would you need to? Those commands are directly related to the behavior of SQL*Plus not the SQL engine in particular.

  • 'set scan off' or 'set define off' now working through JDBC on Oracle 10g

    Hi,
    I am using oracle 10g. I am trying to execute 'set scan off' statement through JDBC (java code) using below statement
    //get connection Connection c = this.init();  //create statement object Statement st = c.createStatement();  //execute statement st.execute("set scan off");
    but it is throwing below exception.
    'java.sql.SQLException: ORA-00922: missing or invalid option'
    I also tried 'set define off' but got same exception. But if I run these statement directly on database without using JDBC there is no exception.
    Please let me know what is the issue.

    Rajesh Panchal wrote:
    Hi,
    I am using oracle 10g. I am trying to execute 'set scan off' statement through JDBC (java code) using below statement
    //get connection
    Connection c = this.init(); 
    //create statement object
    Statement st = c.createStatement(); 
    //execute statement
    st.execute("set scan off");                              but it is throwing below exception.
    'java.sql.SQLException: ORA-00922: missing or invalid option'
    I also tried 'set define off' but got same exception. But if I run these statement directly on database without using JDBC there is no exception.
    Please let me know what is the issue.These are not SQL statements but specific Oracle commands. You would invoke them from PL/SQL through the command interpreter or by using Sqlplus on the commandline; if you try to execute this in a PL/SQL query window you'll get the same error.
    So no, you are not going to invoke them from JDBC.

  • Slow calc time with SET CREATEBLOCKONEQ OFF for block creation

    Hello everyone,
    I have a problem with the slow execution of one of my calc scripts:
    A simplified version of my calc script to calculate 6 accounts looks like this:
    SET UPDATECALC OFF;
    SET FRMLBOTTOMUP ON;
    SET CREATEBLOCKONEQ ON;
    SET CREATENONMISSINGBLK ON;
    FIX (
    FY12,
    "Forecast",
    "Final",
    @LEVMBRS("Cost Centre",0),
    @LEVMBRS("Products",0),
    @LEVMBRS("Entities",0)
    SET CREATEBLOCKONEQ OFF;
    "10000";"20000";"30000";"40000";"50000";"60000";
    SET CREATEBLOCKONEQ ON;
    ENDFIX
    The member formula for each of the accounts is realtively complex. One of the changes recently implemented for the FIX was openin up the cost center dimension. Since then the calculation runs much slower (>1h). If I change the setting to SET CREATEBLOCKONEQ ON, the calculation is very fast (1 min). However, no blocks are created. I am looking for a way to create the required blocks, calculate the member formulas but to decrease calc time. Does anybody have any idea what to improve?
    Thanks for your input
    p.s. DataStorage in the member properties for the above accounts is Never Share

    MattRollings wrote:
    If the formula is too complex it tends not to aggregate properly, especially when using ratios in calculations. Using stored members with member formulas I have found is much faster, efficient, and less prone to agg issues - especially in Workforce type apps.We were experiencing that exact problem, hence stored members^^^So why not break it up into steps? Step 1, force the calculation of the lower level member formulas, whatever they are. Make sure that that works. Then take the upper level members (whatever they are) and make them dynamic. There's nothing that says that you must make them all stored. I try, wherever possible, to make as much dynamic as possible. As I wrote, sometimes I can't for calc order reasons, but as soon as I get past that I let the "free" dense dynamic calcs happen wherever I can. Yes, the number of blocks touched is the same (maybe), but it is still worth a shot.
    Also, you mentioned in your original post that the introduction of the FIX slowed things down. That seems counter-intuitive from a block count perspective. Does your FIX really select all level zero members in all dimensions?
    Last thought on this somewhat overactive thread (you are getting a lot of advice, who knows, maybe some of it is good ;) ) -- have you tried flipping the member calcs on their heads, i.e., take what is an Accounts calc and make it a Forecast calc with cross-dims to match? You would have different, but maybe more managable block creation issues at that point.
    Regards,
    Cameron Lackpour

  • Using SQLCMD need to SET NOCOUNT OFF for Sql Server Parallel Data warehouse (PDW) V2

    Using SQLCMD to copy data to a flat file that is imported into Oracle using SQL Loader.
    At the bottom of the files created by SQLCMD there’s a blank row (ALL NULLs) and then there’s a row that shows the total number of rows, e.g., (12571 rows affected).
    SQL Loader allows us to remove headers (SKIP = 2), but it does not allow us to skip trailing records. Using the WHEN TABLE_ID != BLANKS command I can remove the blank row above the count marker, but SQLLDR still tries to load the count marker into the first
    column, which fails the import.
    When using SET NOCOUNT in the PDW I receive the error ‘NoCount is not a recognized option’.
    Any suggestions on how to get around this and remove the trailing count?

    Hi Waldropj,
    Thank you for your question. I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    If you have any feedback on our support, please click
    here.
    Elvis Long
    TechNet Community Support

  • How to set a scope for sessions

    I need to create a session to store my object in it and I need it to be avalable ONLY on the same computer!!!
    I have the following:
    jsp1
    MyObject obj = (MyObject ) request.getSession().getAttribute("MyObject ");
    request.getSession().setAttribute("MyObject ", obj);
    in jsp2
    MyObject obj=(MyObject)request.getSession().getAttribute("MyObject ");
    now if several users work at the same time they get objects(in jsp2) , last created by another user (in jsp1).

    To be clear, there are basically three ways to access the portal:
    1) authlessanonymous: This method does not require a user to login. Furthermore, only one "session" is created for all anonymous users that are accessing the system. Therefore, it is not appropriate to store user-specific information in the session object when using authlessanonymous. However, the advantage of this is that it is extremely efficient. Obviously, sessions incur a certain amount of overhead and the ability to consolidate anonymous access to a single session reduces the load on the system and increases scalability.
    2) anonymous: Notice the lack of "authless" here. In this case, a new session is created for every anonymous user accessing the system. In a large deployment, this will result in a lot of overhead in the system and reduce the overall scalability of the portal. The advantage of this configuration is that you can store user-specific information in the session.
    3) Registered User: In this case, known users log into the system. This also creates a new session for each user. In this situation you can also store information in the user's display profile within the directory server. Users can customize their desktop and have a much more personalized experience with the portal.
    The typical use case is that most access is done anonymously. Not all users will log into the portal. You want to minimize the impact that anonymous access has on the system. Users that log into the portal will have their own customized portal desktop and also have access to their own session. This creates a more personal experience for users that log into the portal.
    Please read this for more information:
    http://docs.sun.com/source/819-4154/dsameadm.html#wp27343

  • What is the AT&T smtp server for? The SSL is set to "off"

    I was looking around at my Mail settings on my iPhone and noticed there's an AT&T smtp server window. You access it my Settings/Mail Contacts Cal/one of your email accounts/SMTP server/. At the top is the smtp server for your email address which is on, and below are smtp server panes for your other email accounts which are set to off. But one of those smtp server panes is for the AT&T smtp. For what function is it used for? It's vreyed out but SSL set to OFF for the AT&T smtp and the Yahoo smtp, but all the other smtp's are set to ON for SSL.
    Isn't it better for the Secure Sockets Layer (SSL) to be on? Why is Yahoo's and AT&T's set to OFF. I can't find where to access a non-greyed out AT&T's smtp window pane.

    Allan Sampson wrote:
    when sending/receiving via AT&T's cellular network, all data is encrypted over the network, which is a GSM standard.
    Note that in the USA a weaker version of the GSM encryption is used than in Europe.
    http://www.gsm-security.net/faq/gsm-encryption-algorithm-a5-cipher.shtml
    Also, the GSM encryption has been broken a long time ago, but someone whould have to sit between the phone and the basestation to capture and decode the traffic (or they must have access to the network operator's, so called, Legal Intercept interface).
    http://www.gsm-security.net/faq/gsm-a5-broken-security.shtml
    And, AFAIK, the GSM encryption is only in use on the wireless connection between the device and the basestation it is connected to (not on the operator's backbone network, and not when the traffic exits the operator's network and goes to the Internet outside, which it must, in order to get to SMTP servers not in the operator's machine rooms).
    And a last point: Even if you use SSL/TLS between the client and the SMTP server, it is not necessarily used from the SMTP server to the receiving email server (which might mean that the message travels through tens of systems unencrypted until it reaches its destination).

  • [WebLogic Sybase Type 4 JDBC Drivers] set ANSINULL off

    Hi,
    I am having some issues with the Weblogic JDBC Driver for sybase and the ANSINULL functionality.
    It appears that the stored procedures from a third party whose system we are trying to integrate with do ot function properly due to the fact that Weblogic will turn the ANSINULL handelling on.
    I have been reading that we need to run the command 'set ANSINULL off' before we run the stored procedure. Only problem is that the stored procedure is wrapped up in the Spring framework and I see no oppotunity to run this.
    Also readin I've found that the DataDirect connector for Sybase will accept in the URL a string 'InitializationString=set ANSINULL off;' I have tried to set this and it appears to make no difference to the result.
    So I was wondering if this InitializationString works with the weblogic driver?
    Or is there another way I can globaly set ANSINULL off for the Sybase connection. (we also have a number of Oracle connections that are working fine)
    Thanks in advance for any advice
    IV

    Ian Vellosa wrote:
    Hi,
    I am having some issues with the Weblogic JDBC Driver for sybase and the ANSINULL functionality.
    It appears that the stored procedures from a third party whose system we are trying to integrate with do ot function properly due to the fact that Weblogic will turn the ANSINULL handelling on.
    I have been reading that we need to run the command 'set ANSINULL off' before we run the stored procedure. Only problem is that the stored procedure is wrapped up in the Spring framework and I see no oppotunity to run this.
    Also readin I've found that the DataDirect connector for Sybase will accept in the URL a string 'InitializationString=set ANSINULL off;' I have tried to set this and it appears to make no difference to the result.
    So I was wondering if this InitializationString works with the weblogic driver?
    Or is there another way I can globaly set ANSINULL off for the Sybase connection. (we also have a number of Oracle connections that are working fine)
    Thanks in advance for any advice
    IVHi. What version of WebLogic? IN recent ones we have a pool property 'initSQL'
    which you can set. We will run whatever SQL you give, on every pool connection
    when it is created. That would do it.

  • Help! When I set Colunm_header_visible=off(web item), I can't see new line

    Please help!
    When I set COLUMN_HEADER_VISIBLE = OFF for Web Analysis item I can't see new line for input ready form. What should I do to fix this problem?
    Thank you
    Edited by: AlexNK on Jul 9, 2009 10:01 AM

    Please help!
    When I set COLUMN_HEADER_VISIBLE = OFF for Web Analysis item I can't see new line for input ready form. What should I do to fix this problem?
    Thank you
    Edited by: AlexNK on Jul 9, 2009 10:01 AM

  • Mac Mail Conversations - Can you turn it off for a Specific Email address?

    In Mac Mail 6.2, is there a way to leave "Conversations" ON as a default, but turn it off in regards to a certain email address?
    Example:
    I resell printing and have multiple receipts coming from one supplier(One Email address and the same Subject Line). My problem is it is grouping those receipts into the same conversation, but each of these should be seperate because they are for more than one customer.
    Any help would be great. Thanks

    Not exactly, but the following workaround might be useful to you:
    * Create a new mail folder (either in an IMAP account or in "On My Mac").
    * Set that set conversations off for that mail folder.
    * Create a mail rule to move messages from your problem supplier to that folder.
    Downside: You have to remember to check that other folder.
    If it is important to you that the messages be available in the unified Inbox, you might be able to do something similar with a separate mail account.

  • How to Set up HTTPOnly and SECURE FLAG for session cookies

    Hi All,
    To fix some vulnerability issues (found in the ethical hacking , penetration testing) I need to set up the session cookies (CFID , CFTOKEN , JSESSIONID) with "HTTPOnly" (so not to access by other non HTTP APIs like Javascript). Also I need to set up a "secure flag" for those session cookies.
    I have found the below solutions.
    For setting up the HTTPOnly for the session cookies.
    1] In application.cfc we can do this by using the below code. Or we can do this in CF admin side under Server Settings » Memory Variables
         this.sessioncookie.httponly = true;
    For setting up the secure flag for the session cookies.
    2] In application.cfc we can do this by using the below code. Or we can do this in CF admin side under Server Settings » Memory Variables
         this.sessioncookie.secure = "true"
    Here my question is how we can do the same thing in Application.cfm?. (I am using ColdFusion version 10). I know we can do this using the below code , incase of HTTPOnly (for example).
    <cfapplication setclientcookies="false" sessionmanagement="true" name="test">
    <cfif NOT IsDefined("cookie.cfid") OR NOT IsDefined("cookie.cftoken") OR cookie.cftoken IS NOT session.CFToken>
      <cfheader name="Set-Cookie" value="CFID=#session.CFID#;path=/;HTTPOnly">
      <cfheader name="Set-Cookie" value="CFTOKEN=#session.CFTOKEN#;path=/;HTTPOnly">
    </cfif>
    But in the above code "setclientcookies" has been set to "false". In my application (it is an existing application) this has already been set to "true". If I change this to "false" as mentioned in the above code then ColdFusion will not automatically send CFID and CFTOKEN cookies to client browser and we need to manually code CFID and CFTOKEN on the URL for every page that uses Session. Right???. And this will be headache.Right???. Or any other way to do this.
    Your timely help is well appreciated.
    Thanks in advance.

    BKBK wrote:
    Abdul L Koyappayil wrote:
    BKBK wrote:
    You can switch httponly / secure on and off, as we have done, for CFID and CFToken. However, Tomcat automatically switches JsessionID to 'secure' when it detects that the protocol is secure, that is, HTTPS.
    I couldnt understand this. I mean how are you relating this with my question.
    When Tomcat detects that the communication protocol is secure (that is, HTTPS), it automatically switches on the 'secure' flag for the J2EE session cookie, JsessionID. Tomcat is configured to do that. Coldfusion has no say in it. So, for JsessionID, 'secure' is automatically set to 'false' when HTTP is detected and automatically set to 'true' when HTTPS is detected.
         If this is the case then why I am getting below info for jsessionid (As you mentioned it should set with SECURE flag . Right???). Note that we are using web server - Apache vFabric .And the application that we are using is in https and there is no hit is going from https to http.
    Name:
    JSESSIONID
    Content:
    782BF97F50AEC00B1EBBF1C2DBBBB92F.xyz
    Domain:
    xyz.abc.pqr.com
    Path:
    Send for:
    Any kind of connection
    Accessible to script:
    No (HttpOnly)
    Created:
    Wednesday, September 3, 2014 2:25:10 AM
    Expires:
    When the browsing session ends
    BKBK wrote:
    2]When I checked CF Admin->Server Settings->Memory Variables I found that J2EE SESSION has been set to YES. So does this mean that do we need to set HTTPOnly and SECURE flag for JSESSIONID only or for CF session cookies (CFID AND CFTOKEN ) as well ?.
    Set HTTPOnly / Secure for the session cookies that you wish to use. Each cookie has its pros and cons. For example, the JsessionID cookie is more secure and more Java-interoperable than CFID/CFToken but, from the explanation above, it forbids the sharing of sessions between HTTP and HTTPS.
         I understood that setting thos flags (httponly/secure) is as per my wish. But my question was , is it necessary to set those flags forcf session cookies (cfid and cftoken) as we have enabled J2EE session in CF admin?. Or in other way as the session management is J2EE based do we need to set those flags for CF session cookies?.
    BKBK wrote:
    3]If I need to set HTTPOnly and SECURE flag for JSESSIONID , how can I do that.
    It is sufficient to set the HTTPOnly only. As I explained above, Tomcat will automatically set 'secure' to 'true' when necessary, that is, when the protocol is HTTPS.
         I understood that it is sufficient to set httponly only.but how we will set it for jsessionid?. This is my question. Apache vFabric will alos set secure to true automatically. Any idea??

  • After an update to firefox I keep getting a warning from my Firewall (McAfee) "Program wants internet access". I have permission set at outgoing for firefox and updates checking off, to check that request is valid so what does it need access for

    After an update to firefox I keep getting a warning from my Firewall (McAfee) "Program wants internet access". I have permission set at outgoing for firefox and updates checking off, to check that request is valid so what does it need access for

    This was not a Firefox update, but a piece of malicious software you have inadvertently downloaded from a site called http://ffftp.co.cc/ which is impersonating Firefox. I discovered this as soon as my Zonealarm requested permission for "Golds" to access the internet. Golds??!! However I couldn't find a file with this name installed on my computer.
    You should delete the file you downloaded and certainly do not allow internet access to any suspicious program. If you have already given permission, scan your PC immediately for any virus, malware, etc. Best of luck.

  • Unable to get the composite instance for the invocation. This could be because instance has not yet been created or because the audit level for the SOA infra has been set to Off

    I am on Oracle 11.1.1.7 BPM suite on W8 64 bit. I can't launch the flow trace and get the error "Unable to get the composite instance for the invocation. This could be because instance has not yet been created or because the audit level for the SOA infra has been set to Off".  I have set the audit level to development at the soa-infra>SOA Administration> Common Properties > Audit level set to development and Capture Composite Instance State is Checked.
    Can somebody advice.
    Thanks

    Can you please confirm me the following steps...
    Log in to the EM console, Expand soa-infra (soa_server1) , go to the partition where your composite is been deployed, Click on your composite, On the right, click on the dropdown Settings and choose Composite Audit Level. you can choose to set the Audit Level for this composite. If you choose Inherit, it will take the settings to what the server is being set to. Otherwise, we can override it by choosing Off, Production, or Development.
    Make sure your setting for that composite is not Off, keep inherit or production or development.
    Thanks,
    N

  • I've been sent a scan of a document as an attachment. Clicking on it, I get the message, "Pixel aspect ration correction is for preview purposes only. Turn it off for maximum image quality." What is pixel aspect ration and how do I turn it off?

    I've been sent a scan of a document as an attachment. Clicking on it, I get the message, "Pixel aspect ration correction is for preview purposes only. Turn it off for maximum image quality." What is pixel aspect ration and how do I turn it off?

    It's "aspect ratio", not aspect "ration". 
    It's what determines whether you have square pixels ("normal") or, if rectangular pixels, what the aspect ratio (width : length)  of that rectangle is.
    It's explained in the Help files.  I cannot go into more detail because you have neglected to provide information about your platform and exact version of Photoshop.
    Example in next post

Maybe you are looking for

  • Data Target for TCURR

    Hi All, I have a requirement where i need to extract TCURR to a flat file using Open Hub. As Open Hub does not support tables in BW, I think the only option available is to generate a data source for the table TCURR in R/3. I'm not available to find

  • Linksys and Verizon DSL

    I have Verizon DSL and have been using a Netgear wireless router for years, but was going to install a Linksys WRT54G. It doesn't seem to get the DHCP address. I have another linksys router I was going to test with but that also doesn't work. My netg

  • Category changes for multiple selections

    On my IMac (early 2008) running Mavericks & iTunes 11.1.15, I moved some stories from the music catagory to audiobooks. Having accidently selected some music albums as well, I reselected those albums in audiobooks, changed the category back to music,

  • Parsing dblp.xml error?

    I am trying to parse using Java and the streaming API for XML (stAX) w and index the dblp.xml database. Before indexing the xml I first parse the xml document and put in a tree like data structure of the form: public class WK2Element {      public St

  • BB Torch 9800 AT&T unlocked to Bell

    Hi, I recently purchased a Torch 9800 from a friend which was originally bought from AT & T and have tried to use it with Bell after un-locking to Bell and then subscribing to their data plan. All attempts to access the internet and set up BBM had be