Session parameter

Hello all!
I would like to know if there is any kind of session parameter that could be filled with user information, and later be used in a view. I will detail it below.
I would like to bind a view object to a client provided information. Something like this (ignore no matching syntax):
CREATE VIEW v AS
SELECT *
FROM mytable
WHERE
tableinfo = :user_provided_paramter
After connecting, the user should provide the parameter value (ignore no matching syntax, I'm wondering):
SET :user_provided_parameter = 'myinfo'
And the view would be sensible to this setting.
Any ideas?

What is:
The manner/application the user is connecting with (i.e., SQL*Plus, PL/SQL Gateway, Forms, etc.).
The nature of information you want to capture and persist (i.e., passive like client IP address, or interactive like their favorite color).
The length of time you need to persist things (i.e., between sessions or not)
The database version you are using.

Similar Messages

  • Error: Missing initial value for session parameter

    Hi,
    I'm facing a problem while running the ETL process for Complete 11.5.10 Execution Plan in DAC Client. Some tasks are getting failed beacuse of the following error:-
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: VAR_27026 [Error: Missing initial value for session parameter:[$DBConnection_OLAP].].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: CMN_1761 [Timestamp Event: [Mon Nov 19 21:01:52 2007]].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: TM_6270 [Error: Variable parameter expansion error.].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: CMN_1761 [Timestamp Event: [Mon Nov 19 21:01:52 2007]].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: TM_6163 [Error initializing variables and parameters for the paritition.].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: CMN_1761 [Timestamp Event: [Mon Nov 19 21:01:52 2007]].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: TM_6226 [ERROR:  Failed to initialize session [SDE_ORA_Product_Category_Derive_Full]].
    ERROR : LM_36320 [Mon Nov 19 21:02:08 2007] : (2108|2632) Session task instance [SDE_ORA_Product_Category_Derive_Full]: Execution failed.
    When i checked the parameter file i can see the value assigned to the $DBConnection_OLAP. The same tasks ran successfully when i ran the ETL process for Complete 11.5.10 for the first time. I did not change anything after that and also all these are came built-in with the installation of Oracle BI Applications.
    Please anyone give me an idea what is causing the problem.
    Thanks,

    in DAC > Run History > Task Details, query
    Name = SDE_ORA_Product_Category_Temporary
    Open Status Description, look for string -lpf, the file after it is the actual parameter file DAC send to INFA server. E.g
    -lpf D:\DACTOPUS\Informatica\parameters\SDE_ORAR12_Adaptor.SDE_ORA_Product_Category_Temporary.txt
    Open the parameter file, most likely the [session_name] does not match with SDE_ORA_Product_Category_Derive_Full or some parameters are missing.

  • Web dynpro Application session parameter

    Need pointers   for the following queries:
    1.Can I fetch Web Dynpro java application session parameter ?
    2.Is it possible to pass the fetched session parameter of a web Dynpro java application to a URL  while creating  an external window ?
    Regards
    Radhika Kuthiala

    [SAP Network Blog: Never Ever Hijack Internal Web Dynpro Classes and Interfaces|/people/bertram.ganz/blog/2005/02/02/never-ever-hijack-internal-web-dynpro-classes-and-interfaces]
    regards,
    Angelo

  • Pass session parameter with javascript

    H� all?
    I have strange problem...
    I connect some database and take some data in JSP page and after I set these data to session values and I open anothewr JSP page by using javascript window.open() method. By the way I lost session parameter in second JSP page opened by window.open();
    // Here the codes...
    there is a button in my first JSP on Click event : calling Talep_Read1() Javascript function.. This function is below.... Bu I heard about: JSP and javascript works different times...
    function talep_Read1(){
    deg = "<%=abr_kd%>";
    if( deg== "0" || deg == "9"){
    var URL = "/METSIS/talep_read.jsp;jsessionid=<%=session.getId()%>";
    newWin = window.open(URL,'SelWnd','menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,resizable=no,width=800,height=600');
    newWin.focus();
    }else{
    var URL = "/METSIS/Detay_Read2.jsp;jsessionid=<%=session.getId()%>";
    newWin = window.open(URL,'SelWnd','menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,resizable=no,width=800,height=600');
    newWin.focus();
    HOw can solve this prob...?
    Open the second page I lost session parameter but I refresh the this page session parameter is seeen
    What is the problem please helpp::
    Thanks.

    Should be:
    var URL = "/METSIS/Detay_Read2.jsp?jsessionid=<%=session.getId()%>";

  • How to display current session parameter value

    Hi,
    How can a db user know value of a session parameter, if he doen't have privilege to access v$parameter?
    SQL> conn hr/hr
    Connected.
    SQL> show parameter QUERY_REWRITE_ENABLED
    ORA-00942: table or view does not exist
    SQL> alter session set QUERY_REWRITE_ENABLED=true ;
    Session altered.
    -- how can the user HR know the value of QUERY_REWRITE_ENABLED

    You can code a PL/SQL function and grant only execute privilege to the user:
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL> drop user admin cascade;
    User dropped.
    SQL> create user admin identified by admin;
    User created.
    SQL> grant create session, create procedure to admin;
    Grant succeeded.
    SQL> grant select on sys.v_$parameter to admin;
    Grant succeeded.
    SQL> connect admin/admin
    Connected.
    SQL> show user;
    USER is "ADMIN"
    SQL> create or replace function get_parm (p_pn in varchar2) return varchar2
      2  as
      3  l_val v$parameter.value%type;
      4  begin
      5   if ( UPPER(p_pn) = 'QUERY_REWRITE_ENABLED' )
      6   then
      7        execute immediate 'select value from v$parameter where name = :1 '
      8        into l_val using p_pn;
      9        return l_val;
    10   else
    11      raise_application_error(-20000,'Invalid parameter');
    12      return null;
    13   end if;
    14  end;
    15  /
    Function created.
    SQL> grant execute on get_parm to test;
    Grant succeeded.
    SQL> connect test/test
    Connected.
    SQL> show parameter query
    ORA-00942: table or view does not exist
    SQL> select admin.get_parm('query_rewrite_enabled') from dual;
    ADMIN.GET_PARM('QUERY_REWRITE_ENABLED')
    TRUE
    SQL> select admin.get_parm('compatible') from dual;
    select admin.get_parm('compatible') from dual
    ERROR at line 1:
    ORA-20000: Invalid parameter
    ORA-06512: at "ADMIN.GET_PARM", line 11

  • Define session parameter for a user

    Hi,
    in 10g R2, can we set a session parameter for a user definitely ?
    I mean to avoid running the following command line at the begining of each session :
    alter session his_parameter=somevalue;
    Thank you.

    Hi,
    The only way I know to do this is to create a logon trigger that execute the "alter session" command.
    Liron Amitzi
    Senior DBA consultant
    [www.dbsnaps.com]
    [www.orbiumsoftware.com]

  • Automatic setup of Oracle session parameter nls_sort?

    Hi,
    Is there a way to automatically set up the Oracle session parameter when connecting to Oracle?
    Much like the .profile file does when logging into Linux.
    The session parameter in question is nls_sort. It seems the only way to set nls_sort to BINARY_CI
    is to invoke the command after connection:
    alter session set nls_sort = 'BINARY_CI'.
    But if I am using third party jdbc connection that does not allow the insertion of the alter session command,
    I am out of luck. I cannot run the sort using case insensitive mode.
    Is there any other alternative that would enable BINARY_CI.
    I tried to put it in initXXX.ora, but it did not work.
    I appreciate the replies and helps.
    Andrew K

    user643072 wrote:
    Is there any other alternative that would enable BINARY_CI.
    I tried to put it in initXXX.ora, but it did not work.That's maybe because NLS_SORT is derived from NLS_LANGUAGE which is itself derived from NLS_LANG, client setting env variable.
    That means, to avoid to use a trigger, and to take in account your init.ora setting, you may need to change the client local settings.
    What is the NLS_LANG value of the client ?
    Nicolas.
    PS: sorry, didn't know what Werner explained earlier : "...because JDBC ignores NLS_LANG settings."
    Edited by: N. Gasparotto on Jun 2, 2009 9:33 PM

  • Session parameter for a export job

    Dear all,
    10.2.0.1 on windows 2003.
    Is there anyway I can set this session parameter ALTER SESSION SET EVENTS '10231 TRACE NAME CONTEXT FOREVER, LEVEL 10'; for a export job using exp done at the OS level ?
    Kai

    Is there anyway I can set this session parameter ALTER SESSION SET EVENTS '10231 TRACE NAME CONTEXT FOREVER, LEVEL 10'; for a export job using exp done at the OS levelyes, via LOGON trigger

  • When a session parameter changed

    Hi,
    Can you please help to find when a session parameter was last changed.
    Poulose

    Unfortunately don't remember seeing such a control.
    Regards.
    RK

  • Sessions parameter

    hello,
    I've installed Oracle 11gR2 to Linux and set sessions parameter to 300.
    But Still sessions parameter value is 322..
    Thanks

    Hi,
    What's set your processes parameter?
    Anyway, this thread may help you.
    <<11G XE sessions parameter
    Regards,

  • Need help resetting the SESSIONS parameter

    Hi Folks,
    Environment: Oracle 10g Rel 2
    I am trying to reduce the number of sessions to the database as follows
    *# Snap shot of existing values*
    show parameters session;
    show parameters processes;
    show parameters transactions;
    sessions     integer  170
    processes    integer  150
    transactions integer  187*# Modifying the SESSION parameter value*
    alter system set sessions=3 scope=spfile;*# Bounce the instance*
    shutdown immediate; *# Startup the instance*
    startup;*# Verify if the new value took effect*
    show parameters session;
    Output: sessions integer     170*# Check if the new value exists in spfile*
    select NAME||','||VALUE||','||DISPLAY_VALUE||','||ISSPECIFIED
    from v$spparameter
    where NAME like 'session%'
    Output: sessions,3,3,TRUE*# Verify, if the database was started with the spfile*
    SELECT DECODE(value, NULL, 'PFILE', 'SPFILE') "Init File Type"
           FROM sys.v_$parameter WHERE name = 'spfile'
    Output:
    Init F
    SPFILEAny ideas as to why the SESSIONS parameter would not take effect?
    Thanks in advance
    rogers42

    The sessions parameter is derived from the processes parameter, and in most cases there should be no reason to set it, and leave it untouched.
    Setting sessions to 3 is utterly, utterly silly as the background processes count as sessions too.
    This might be another reason why Oracle fortunately choose to ignore your change.
    You should spend some more time on reading documentation, to avoid new attempts to wreck Oracle and create more havoc.
    Sybrand Bakker
    Senior Oracle DBA

  • How to set Processes and Session parameter

    Hi All,
    I have to check the optimal value for the Parameter "processes" and "session" for my database server,
    existing value for Processes is 500 and sessions is 1000.
    Oracle application: 12.0.6
    database 10.2.0.4 2 node RAC.
    and i wanted to know how many " jdbc connection" can be done for the 12GB RAM and Quad core two CPU machine,
    Pl let us know any doc/Thumb rule to set the above.
    Thanks and Regards
    Vasu

    Hi,
    I wanted to check what is the maximum limit of the "processes" for my existing resource. is my 500 processes itself is exhasted the resources.The maximum limits are mentioned in the database reference manual.
    Process and Runtime Limits
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/limits004.htm#i288165
    Oracle 10g Documentation Library
    http://www.oracle.com/pls/db102/homepage
    Kindly let me know any SQL query or supporting document to set the processes and session parameters.Did you review the initialization document referenced above? I believe it shows the value you need to set for processes and session parameters. For the query, you can query v$parameter or issue "show parameter <parameter name>" from SQL*Plus.
    Regards,
    Hussein

  • Passing session parameter to a portlet from webcenter spaces page

    How do you pass a parameter to a portlet on a WebCenter Spaces page? For example, I have the user's company ID in the session, I need to pass that company ID to the portlet defined to accept a company ID parameter so that the returned data can be filtered.

    You can for example add the companyID to the url of the page and then pass that parameter to the parameter of your portlet.
    Have you created your portlet to enable inter portlet communication? You should first do that and create a navigation-parameter in the oracle.xml. If you don't know what i'm talking about, i'll explain a bit more.
    Their is another way, which is easier i think, is to set the value of your portlet parameter to an expression language refering to a session variabel.
    In you portlet parameter set the companyId (if you have created a navigation-parameter companyID) to following value:
    #{sessionScope.company}You will have to set the value of that session variable from within your webcenter spaces.
    How are you doing that? Are you planning on setting that variable using another portlet, taskflow,... This can be very important on how webcenter reactt on parameters and it can also give you additional ways on passing the parameters.

  • What is the relationship between Process and Session parameter in Oracle

    Hi All
    I ran into a problem
    "ORA-00020: maximum number of processes (150) exceeded " on the other day and I want to fix this temporary by increase the process by some number like 200.
    Someone suggesting the syntax to fix my problem then the database must restart after running this command.
    alter system set processes=200 scope=spfile;
    However, I check the v$Paramenter view I see 2 values I believe they go together are
    Processes: 150
    Sessions:170.
    Here are my questions:
    1. "alter system set processes=200 scope=spfile;" is the correct way to increase the max Processes?
    2. Do I have change the number of Sessions after changing the number of Processes?
    3. Is there other way to increase the processes number without reboot the Oracle database?
    Regards,
    Jdang

    According to the Oracle version# Reference manual which documents the database parameters sessions is set to 1.1 * process + 5 using the 10gR2 version.
    Basically an Oracle process cooresponds to an OS process that performs the actual work for the session.
    An Oracle session is a collection of memory structure entries that identifies and keeps track of what is being done for a client of the Oracle database.
    Sometimes a single background process will support multiple sessions even in dedicated server mode such as when recursive SQL is performed to support the DML statement being done in the session.
    PS - you should consider increasing processes first and only increase sessions if you still have an issue.
    HTH -- Mark D Powell --
    Message was edited by: mdp add PS
    mpowel01

  • Sessions  parameter crossing 70%

    Hi Gurus ,
    I am using 10.2.0.5.0.
    below are my values .
    RESOURCE_NAME
    CURRENT_UTILIZATION
    MAX_UTILIZATION
    INITIAL_ALLOCATION
    LIMIT_VALUE
    processes
    1561
    1929
    2000
    2000
    sessions
    1579
    2062
    2205
    2205
    num_cpus are 128.
    Can you please help me to identify from where the sessions are comming or if i can increase the limit value without having any impact .
    Regards ,
    DBAPPS

    DBApps wrote:
    Hi Gurus ,
    I am using 10.2.0.5.0.
    below are my values .
    RESOURCE_NAME
    CURRENT_UTILIZATION
    MAX_UTILIZATION
    INITIAL_ALLOCATION
    LIMIT_VALUE
    processes
    1561
    1929
    2000
    2000
    sessions
    1579
    2062
    2205
    2205
    num_cpus are 128.
    Can you please help me to identify from where the sessions are comming or if i can increase the limit value without having any impact .
    Regards ,
    DBAPPS
    select machine, count(*) from v$session group by machine order by 1;
    if you increase SESSION, the SGA size will also increase

Maybe you are looking for

  • Itunes will not launch on Windows Vista no error code

    Itunes will not launch on my computer. I have windows vista. I have uninstalled and downloaded itunes repeatedly. I have also tried all of the troubleshooting tips available on the apple support site. But none of them worked. Quicktimes works fine. I

  • Project Systems - Business Content

    Hi, We are trying to install Project Systems Business Systems. We are in process of creating technical specs. In the help.sap.com or best practices ,There is no detail explanation is available (Source field,source table or logic to get the field). So

  • Adding a new DNS zone to OD master for use as mail server

    hi all, i recently migrated form apple's postfix to kerio mail server. i am usung an xserve to run OD master, DNS, Jabber, Windows PDC and kerio mail. server name is mail.domain1.com and i am hosting it on local IP 192.168.0.4 and using NAT on my fir

  • Fast dial does not work, firefox 6.0. Will not bring up the page when I click the icon necxt to address bar.

    Before I updated firefox (the time before I updated to 6.0) I had fast dial and it worked perfectly fine. Then it just would not work at all. Clicking the icon up next to my address bar- nothing. Even tried adding pages to fast dial by right clicking

  • Deletion of Invalid and duplicate roles

    Hi, This is regarding some function modules which are used for deleting invalid roles.These function modules are available only in CUA environment that is in Solution Manager environment only, not in ECC or other systems.Can anybody confiem which one