Identify the Session parameters
Dear Experts,How can a DBA, I identify the session level settings. For example, a session changes the initialization of the settings at a session level such as below:
Session 1_
ALTER session set cursor_sharing = force;
Select * from emp where empno = 123;
and the session preceding is always connected.
Is there a view to watch for the updated initialization settings the?
Thanks for the work on my question.
Concerning
Oracle Lover3 wrote:
Dear Experts,How can a DBA, I identify the session level settings. For example, a session changes the initialization of the settings at a session level such as below:
Session 1_
ALTER session set cursor_sharing = force;
Select * from emp where empno = 123;
and the session preceding is always connected.
Is there a view to watch for the updated initialization settings the?
As he has already contributed by others to in the session, you can use V$ PARAMETER to find corrupted session parameter values.
For settings that apply to the optimizer, there are two new modes in Oracle 10 g and later: V$ SYS_OPTIMIZER_ENV and V$ SES_OPTIMIZER_ENV.
V$ SYS_OPTIMIZER_ENV represents the default values inherited by each session defined by the parameters of the instance.
V$ SES_OPTIMIZER_ENV displays the current values for each session, including all parameters changed in the session by ALTER SESSION. If this practical perspective can be used to check from outside the session if all relevant parameters for the optimizer have been modified or not.
Kind regards
Randolf
Oracle related blog stuff:
http://Oracle-Randolf.blogspot.com/
SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676 /.
http://sourceforge.NET/projects/SQLT-pp/
Tags: Database
Similar Questions
-
For the other sessions to find the NLS parameters.
Hi all
Database server Environment Details: 2 Node Oracle 10.2.0.4 RAC on Solaris Operating System
Parameter in Spfile: nls_sort = BINARY_CI nls_comp = LINGUISTIC nls_language = AMERICAN
Parameters in database: SQL> select * from nls_database_parameters; PARAMETER VALUE ------------------------------ ------------------------------------------------------------ NLS_LANGUAGE AMERICAN NLS_NCHAR_CHARACTERSET AL16UTF16 NLS_TERRITORY AMERICA NLS_CURRENCY $ NLS_ISO_CURRENCY AMERICA NLS_NUMERIC_CHARACTERS ., NLS_CHARACTERSET AL32UTF8 NLS_CALENDAR GREGORIAN NLS_DATE_FORMAT DD-MON-RR NLS_DATE_LANGUAGE AMERICAN NLS_SORT BINARY NLS_TIME_FORMAT HH.MI.SSXFF AM NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR NLS_DUAL_CURRENCY $ NLS_COMP BINARY NLS_LENGTH_SEMANTICS BYTE NLS_NCHAR_CONV_EXCP FALSE NLS_RDBMS_VERSION 10.2.0.4.0 20 rows selected.
Now, each index on columns of type of data characters in this database are created as function of the Index of base to support Case Insensitive search using nls_sort to BINARY_CI, as shown below.Parameters at client's environment variable(Its Application sever on Windows): Oracle Client 10.2.0.4 nls_sort = BINARY_CI nls_comp = LINGUISTIC
What worries me started when I created by mistake an index btree normal on a character column. After this error just by curiosity, I enabled index followed up on this clue, when I checked in v$ object_usage it got USED!CREATE UNIQUE INDEX UX_NAME_BR ON ONS (NLSSORT("NAME",'nls_sort=''BINARY_CI'''),"TYPE_ID", "UNIT_NUMBER", "DOMICILE", "IS_ACTIVE", "ID")
So I strongly suspect that there are a few sessions connected to this database with different values of NLS instead of nls_sort = BINARY and nls_comp = LINGUISTIC...
Sort of, I did a little test in production to confirm this, as shown below:
IDX_COD index is a regular btree index...PARAMETER VALUE -------------------------------------------------- ------------------------------------------------------------ NLS_LANGUAGE AMERICAN NLS_TERRITORY AMERICA NLS_CURRENCY $ NLS_ISO_CURRENCY AMERICA NLS_NUMERIC_CHARACTERS ., NLS_CALENDAR GREGORIAN NLS_DATE_FORMAT DD-MON-RR NLS_DATE_LANGUAGE AMERICAN NLS_SORT BINARY NLS_TIME_FORMAT HH.MI.SSXFF AM NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR NLS_DUAL_CURRENCY $ NLS_COMP BINARY NLS_LENGTH_SEMANTICS CHAR NLS_NCHAR_CONV_EXCP FALSE 17 rows selected. SQL> set autotrace traceonly exp SQL> select id,is_active from ons where domicile = 'US' and id = 440 and name = 'AMERICAN COMPANY'; Execution Plan ---------------------------------------------------------- Plan hash value: 1171456783 --------------------------------------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop | --------------------------------------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 1 | 49 | 4 (0)| 00:00:01 | | | | 1 | PARTITION RANGE ALL | | 1 | 49 | 4 (0)| 00:00:01 | 1 | 3 | |* 2 | TABLE ACCESS BY LOCAL INDEX ROWID| ONS | 1 | 49 | 4 (0)| 00:00:01 | 1 | 3 | |* 3 | INDEX RANGE SCAN | IDX_COD | 1 | | 4 (0)| 00:00:01 | 1 | 3 | --------------------------------------------------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 2 - filter("ID"=440) 3 - access("DOMICILE"='US' AND "NAME"='AMERICAN COMPANY') SQL> alter session set nls_sort=BINARY_CI; Session altered. SQL> alter session set nls_comp=LINGUISTIC; Session altered. SQL> select * from nls_session_parameters; PARAMETER VALUE -------------------------------------------------- ------------------------------------------------------------ NLS_LANGUAGE AMERICAN NLS_TERRITORY AMERICA NLS_CURRENCY $ NLS_ISO_CURRENCY AMERICA NLS_NUMERIC_CHARACTERS ., NLS_CALENDAR GREGORIAN NLS_DATE_FORMAT DD-MON-RR NLS_DATE_LANGUAGE AMERICAN NLS_SORT BINARY_CI NLS_TIME_FORMAT HH.MI.SSXFF AM NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR NLS_DUAL_CURRENCY $ NLS_COMP LINGUISTIC NLS_LENGTH_SEMANTICS CHAR NLS_NCHAR_CONV_EXCP FALSE 17 rows selected. SQL> select id,is_active from ons where domicile = 'US' and id = 440 and name = 'AMERICAN COMPANY'; Execution Plan ---------------------------------------------------------- Plan hash value: 270874147 ------------------------------------------------------------------------------------------------------------------------------ | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop | ------------------------------------------------------------------------------------------------------------------------------ | 0 | SELECT STATEMENT | | 1 | 49 | 2 (0)| 00:00:01 | | | | 1 | TABLE ACCESS BY GLOBAL INDEX ROWID| ONS | 1 | 49 | 2 (0)| 00:00:01 | ROWID | ROWID | |* 2 | INDEX RANGE SCAN | UX_NAME_BR | 1 | | 2 (0)| 00:00:01 | | | ------------------------------------------------------------------------------------------------------------------------------ Predicate Information (identified by operation id): --------------------------------------------------- 2 - access(NLSSORT("NAME",'nls_sort=''BINARY_CI''')=HEXTORAW('669696E6720636F6D70 616E7900') AND "ID"=440) filter("ID"=440 AND NLSSORT(INTERNAL_FUNCTION("DOMICILE"),'nls_sort=''BINARY_CI ''')=HEXTORAW('7588700') )
So, how can I find which sessions have access to these indexes and find the session parameters nls level connected to this database.
I know there is no way to find settings nls for the other sessions without tracing it...
Kickbacks will not work me
NLS_DATABASE_PARAMETERS
NLS_SESSION_PARAMETERS
Could someone help me please to find these sessions these sessions that are not level session as BINARY_CI and LANGUAGE settingsTrigger may fail if the storage space for the trace table is full. This trigger does not use dynamic SQL code: in this perspective, it is a bit more secure.
I don't know any other way supported to retrieve another session NLS parameters. But he can there have no documented similar to this one http://dioncho.wordpress.com/2009/07/18/spying-on-the-other-session/.
-
Select count (*) in the session of v$.
Count (*)
----------
124
(1) how to stop all these sessions can you tell me the solution pleaseYou must identify the session ID of the sessions that you want to stop and then kill them using these session IDs.
This link might be useful
http://www.Oracle-base.com/articles/Misc/KillingOracleSessions.php
Published by: Saran on January 17, 2012 20:59
-
Hello, there are times that my Firefox crashes (well, it happens to all of us who use it to some extent) or updates asking to restart. I would like to know if there is an option that allows you to restore the previous session automatically without asking me even. It would be very useful for reasons. I had this kind of problem a couple of times ending me be upset. Sometimes I misclicked and lost all my important tabs. Other times my firefox has crashed/shifted on after reboot and guess what sound restart still has not even asking me if I wanted to restore my session crashed.
Thank you in advance.
Cesarius Hi, I think I understand, but I have not explained completely.
The browser.sessionstore.max_resumed_crashes preference is to avoid an infinite loop. The default value 1 means an attempt to restore the session automatically once and if it fails (for example, it crashes before it can finish to restore), then display the "embarrassing". You could try to increase the value of 2 or 3 and see if it works on the second or third time. If you still see the screen "This is awkward" after a crash, Firefox still does not make a failback.
You can also check if there is a file user.js in your profile folder. A user.js file is a file of optional parameters that Firefox reads at startup and uses to override the settings saved in your previous session. Unless you create a user.js file yourself, you can usually just remove it. This article includes a section on the hunt for a possible user.js file: How to fix preferences that will not save.
Note: by default, Windows hides the .js file extension. Precise work with file names, I suggest setting windows to show all file extensions. This article has the steps: https://www.mozilla.org/firefox/all/
-
How to get the Session ID of VISA control
Hello
1. I was wondering if it was possible to get the Session ID for serial port via the node of the control of VISA property but I am unable to find it, but if I put the probe on the Session ID string is there (see serial_session_id.png). Someone knows a good work-around?
2 when I browse through the items property of the VISA control I noticed that the General parameters appear twice. It's confusing and I don't know if this is a bug or not (see instr_property.png)
I use LV 2012 with NI-VISA 5.2
Hello
You can do this by using the Reffnum to the VI session.
Please find attached an example.
Best regards
Ion R.
Be sure to mark the solutions. Congratulations are welcome.
-
Failed to set the specified property while the session is running - 6552
I created a program to run several different scripts. The first time through my program works perfectly. The second time through (without reset of the card, or re - download vectors etc.) but it fails.
As he tried to run the following command:
niHSDIO_ConfigureDataVoltageCustomLevels (DIO3_acq_session, 11-13, 18, 19', 1.8, 2.0)
I have the following error:
"Specified property cannot set while the session is running.
Set the property before the opening of the session, or abandon the session before setting the property. »Any suggestions on what could happen? Alternatively, any advice for troubleshooting techniques to learn more about the problem?
I found my error:
Several of my scripts include a list of markers so that the records are captured, and I download the recordings captured later. Whenever I'm about to run a script that has files, I made the "niHSDIO_ConfigureAcquisitionSize" function in order to identify the size and quantity of records.
However, the first script in my program that I run I don't need records captured, so I didn't bother to call the function "niHSDIO_ConfigureAcquisitionSize".
So, first map like the default setting for the number of records for the first script (in which I do not bother with all the captured records), but then the subsequent pass in my stream of test cards do not like the fact that I have had set up for many more records that he caught (lack of markers / triggers).
It's a little confusing to explain, but I found the problem, so any help is needed.
-
How can I use the excpeption address in widows debugging to identify the cause?
Hello
I have a windows xp machine crashes randomly.
I did a debug and wonder how I can identify the driver that is the cause using the exception address.
Dump below:
Microsoft (R) debugging Version of Windows 6.12.0002.633 X 86
Copyright (c) Microsoft Corporation. All rights reserved.Loading dump file [E:\Mini072911-01.dmp]
The mini kernel dump file: only registers and the trace of the stack are availableSymbol search path is: SRV * c:\debug-symboles * http://msdl.microsoft.com/download/symbols
Executable search path is:
Windows XP Kernel Version 2600 (Service Pack 3) MP (2 processors) free x 86 compatible
Product: WinNt, suite: TerminalServer SingleUserTS
By: 2600.xpsp_sp3_gdr.101209 - 1647
Computer name:
Kernel base = 0x804d7000 PsLoadedModuleList = 0x8055d720
The debugging session: 21:08:37.390 Thu Jul 28 2011 (UTC + 01:00)
System Uptime: 1 day 11:05:14.187
Loading the kernel symbols
...............................................................
................................................................
.................................................
Loading user symbols
Loading unloaded module list
..................................................
*******************************************************************************
* *
* Bugcheck analysis *.
* *
*******************************************************************************Use! analyze - v to obtain detailed debugging information.
Bugcheck 1000007E, {c0000005, 874551ad, ba557b04, ba557800}
Probably caused by: ntkrpamp.exe (nt! KiSwapContext + 2f)
Follow-up: MachineOwner
---------1: kd >! analyze - v
*******************************************************************************
* *
* Bugcheck analysis *.
* *
*******************************************************************************SYSTEM_THREAD_EXCEPTION_NOT_HANDLED_M (1000007e)
It is a very common bugcheck. Usually the PIN address of exception
the driver/function that caused the problem. Always note this address
and the date of the picture link / driver that contains this address.
Some common problems are the exception code 0 x 80000003. This means a hard
coded breakpoint or assertion was hit, but this system has been started
/ /NODEBUG. It is not supposed to happen as developers should never have
breakpoints coded hard in retail code, but...
In this case, make sure a debugger must be connected and the
system startup/DEBUG. This will we will see why this breakpoint is
happening.
Arguments:
Arg1: c0000005, the unhandled exception code
Arg2: 874551ad, the address that the exception occurred at
Arg3: ba557b04, address of Exception report
Arg4: ba557800, address of the context recordDebugging information:
------------------EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - the instruction at "0 x % lx 08" referenced memory at "0 x % 08 lx. The memory could not be '%s '.
FAULTING_IP:
+ 2f
874551ad f3a4 MOV byte ptr rep are: [edi], byte ptr [esi]EXCEPTION_RECORD: ba557b04-(.exr 0xffffffffba557b04)
ExceptionAddress: 874551ad
ExceptionCode: c0000005 (access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter [0]: 00000001
Parameter [1]: 01000000
Try to write at the address 01000000CONTEXT: ba557800-(.cxr 0xffffffffba557800)
EAX = 00000000 ebx = 875677d ecx 8 = 00000200 edx = 00000000 esi = 8745bb80 edi = 01000000
EIP = 874551ad esp = ba557bcc ebp = ba557bd4 iopl = 0 nv up ei pl nz na po nc
CS = 0008 ss = 0010 ds = 0023're = 0023 fs = 0030 gs = 0000 efl = 00010202
874551ad f3a4 MOV byte ptr rep are: [edi], byte ptr [esi]
Reset the default scopeCUSTOMER_CRASH_COUNT: 1
DEFAULT_BUCKET_ID: DRIVER_FAULT
Nom_processus: System
Error_code: (NTSTATUS) 0xc0000005 - the instruction at "0 x % lx 08" referenced memory at "0 x % 08 lx. The memory could not be '%s '.
EXCEPTION_PARAMETER1: 00000001
EXCEPTION_PARAMETER2: 01000000
WRITE_ADDRESS: 01000000
FOLLOWUP_IP:
NT! KiSwapContext + 2f
80545a1b 8b2c24 mov ebp, dword ptr [esp]FAILED_INSTRUCTION_ADDRESS:
+ 2de2faf01dadfc0
874551ad f3a4 MOV byte ptr rep are: [edi], byte ptr [esi]BUGCHECK_STR: 0X7E
EXCEPTION_DOESNOT_MATCH_CODE: This indicates a hardware error.
Instruction to 874551ad does not read/write in 01000000LAST_CONTROL_TRANSFER: from 87456682 to 874551ad
STACK_TEXT:
WARNING: Frame IP not in any known module. Sequence of images may be wrong.
ba557bd4 87456682 01000000 00000000 00000010 0x874551ad
ba557c00 804ef19f 8ad2dd98 87567768 8ad2dd98 0 x 87456682
ba557c30 80545a1b ba557c88 00000000 00000000 nt! IopfCallDriver + 0 x 31
ba557c34 ba557c88 00000000 00000000 00000000 nt! KiSwapContext + 0x2f
00000000 00000000 00000000 00000000 00000000 0xba557c88SYMBOL_STACK_INDEX: 3
SYMBOL_NAME: nt! KiSwapContext + 2f
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: nt
Nom_image: ntkrpamp.exe
DEBUG_FLR_IMAGE_TIMESTAMP: 4d00d46f
STACK_COMMAND: .cxr 0xffffffffba557800; Ko
FAILURE_BUCKET_ID: 0x7E_CODE_ADDRESS_MISMATCH_BAD_IP_nt! KiSwapContext + 2f
BUCKET_ID: 0x7E_CODE_ADDRESS_MISMATCH_BAD_IP_nt! KiSwapContext + 2f
Follow-up: MachineOwner
See you soon
KeV
Hi Kev,
The issue of Windows XP, you have posted is related to Windows XP in a domain environment. It is better suited for the IT Pro TechNet public. Please ask your question in the TechNet forums for assistance.
Hope the helps of information.
-
How can I identify the name of the invisible file for a backup file successfully to an external hard drive USB2 separate? I use Windows Vista backup program (Service Pack 2), and I need to do backups plus two from other computers on the same external hard drive. To do this, I think I would need to identify each backup file separate I know which file to specify if I need to do a restore.
How can I accomplish this? The program does not seem to give me the ability to specify a file to which to write the backup during a given session files. In addition, I do not understand why I can not see the file name in Windows Explorer - my files options are defined to be able to view hidden and system. Would be grateful for any help you can provide, tonight if possible. Best regards, Oliver for Norm
Hello
See this link:
http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions
http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-or-change-automatic-backup-settings
http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-your-programs-system-settings-and-files
-
Keep the session with Esx/Vcenter throughout the backup
Hello
When I trigger a backup of drive on a virtual machine, I have the following algorithm.
1. log in to the host.
2 take a snapshot of the virtual machine.
3. for each disk in the virtual machine, the request for the block changed.
4. take the backup of the disk.
5. Repeat steps 3 and 4 for the entire disc.
6. store the virtual machine configuration.
7 remove the snapshot.
8 disconnection.
When I tested my code with a very large drive which took place for a 8hrs say for a diskbackup complete, when I get to step 6, the session appears to have expired. With the exception of the removal of the snapshot, I think I can work around the problem - since the snapshot is an object of the session, just confused how this can be managed. Is there a way to keep the session until I finish the backup - as it seems more natural to keep the session so that all operations are completed instead of trying to work around. Let me know your opinion.
Thank you
. / Siva.
Hello Shiva!
I couldn't find a way to get the object of snapshot based on the name. One of the recommended steps to do before taking a snapshot is to delete all the snapshots with the name that you use to take the snapshot - which are essentially snapshots of the backup failed. The virtual computer object provides a way that to remove all snapshots - which of course is false, but does not rely on the name of the snapshot. Any ideas on that?
Sorry to be not been clear enough, I'll try one another: how to find a snapshot by name?
I agree with you that it is not obvious at first glance. In my opinion the VirtualMachine managed object provides a property named 'snapshot '. This property is an instance of data object VirtualMachineSnapshotInfo. There is a property named "rootSnapshotList". This property is an array of data objects VirtualMachineSnapshotTree . And now comes the crucial point to the routine:
To me, it seems that the hierarchy entire snapshot is represented by instances of VirtualMachineSnapshotTree of objects where each of them finally points to the successful VirtualMachineSnapshot Explorer they represent in fact. The tree object provides data in read-only snapshot represented, i.e. name, description, etc.
In short:
- Download the roots of instant trees via VM.snapshot.rootSnapshotList
- Recursively browse through [VirtualMachineSnapshotTree.childSnapshotList]
- Identify your snapshot via VirtualMachineSnapshotTree.name
- Access to the managed VirtualMachineSnapshot object via VirtualMachineSnapshotTree.snapshot
- Remove the snapshot via the method RemoveSnapshot_Task
I guess that should work :-)
-
Hi all
I use OBIEE 11.1.1.6.8 version and have deployed version 6.0 of BASEL RPD. When I go to the dashboard I get the below error
Error View display error ODBC driver returned an error (SQLExecDirectW).Error codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65PState: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 23006] The session variable, NQ_SESSION. RPB_Tier1Capital, has no value definition. (HY000)SQL published: {call NQSGetQueryColumnInfo ("SELECT saw_0 FROM ((SELECT sum ("head of Accounting Standard in fact"." Standard Accounting head amount "(/1000000) saw_0,"Head of Accounting Standard"". "" Saw_1 head Accounting Standard identifier', '-D2061Legal entity Info "." Customer First Name' saw_2, VALUEOF (NQ_SESSION. RPB_Tier1Capital) saw_3, saw_4 3, '-Dimension Run D1008 '. " Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (Run surrogate key' AS VARCHAR (10)) saw_5 'Basel' WHERE ('head of Accounting Standard". ("' Chief Accountant standard identifier" = "CAP058") AND ("-D001 Date Dimension". "") (Date of extraction "=" 2013-10-04 ") AND (" '-D2036 Type of Cosolidation legal entity "". "") Basel consolidate Option Type Description"(" GROUP")) AND ("-Info entity D2061Legal "." ") (Client name' IN ("*) nqgtn(*'')) AND (" "-Dimension run D1008" "." ") Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (((Run surrogate key' AS VARCHAR (10)) IN ('Basel II Capital calculation-97000106'))) UNION (SELECT sum ("head of Accounting Standard in fact". "Standard Accounting head amount"(/1000000) saw_0, "Head of Accounting Standard" "." " Saw_1 head Accounting Standard identifier', '-D2061Legal entity Info "." Customer First Name' saw_2, VALUEOF (NQ_SESSION. RPI_TotalEligibleCapital) saw_3, saw_4 4, '-Dimension Run D1008 '. " Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (Run surrogate key' AS VARCHAR (10)) saw_5 'Basel' WHERE ('head of Accounting Standard". ("' Chief Accountant standard identifier" = "CAP210") AND ("-D001 Date Dimension". "") (Date of extraction "=" 2013-10-04 ") AND (" '-D2036 Type of Cosolidation legal entity "". "") Basel consolidate Option Type Description"(" GROUP")) AND ("-Info entity D2061Legal "." ") (Client name' IN ("*) nqgtn(*'')) AND (" "-Dimension run D1008" "." ") Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (((Run surrogate key' AS VARCHAR (10)) IN ('Basel II Capital calculation-97000106'))) UNION (SELECT sum ("head of Accounting Standard in fact". "Standard Accounting head amount"(*100) saw_0, "Head of Accounting Standard" "." " Saw_1 head Accounting Standard identifier', '-D2061Legal entity Info "." Customer First Name' saw_2, VALUEOF (NQ_SESSION. RPB_Tier1CapitalRatio) saw_3, 6 saw_4, '-Dimension Run D1008 '. " Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (Run surrogate key' AS VARCHAR (10)) saw_5 'Basel' WHERE ('head of Accounting Standard". ("' Chief Accountant standard identifier" = "CAP214") AND ("-D001 Date Dimension". "") (Date of extraction "=" 2013-10-04 ") AND (" '-D2036 Type of Cosolidation legal entity "". "") Basel consolidate Option Type Description"(" GROUP")) AND ("-Info entity D2061Legal "." ") (Client name' IN ("*) nqgtn(*'')) AND (" "-Dimension run D1008" "." ") Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (((Run surrogate key' AS VARCHAR (10)) IN ('Basel II Capital calculation-97000106'))) UNION (SELECT sum (case where "Accounting Standard head".)) «Standard accountant Chief identifier "=" CAP090 "then"fact head of Accounting Standard".» "" Flat rate of chief accountant "whenCan someone help me please. I'm new and I have no experience with the available filters.
The session variable, NQ_SESSION. has no definition of value. (HY000)
This means that your init block does not work. Check the init block why its not leading is not to any data.
only when the init block fails in the data, the server checks for the default value of the variable.
Since there is no default value, you get this error.
Init blocks can fail because
1 connection pool does not work.
2. the table or view does not exist
3. no data in the table
4. the filter in the sql in init block is not initialized if his coming of another variable of session.
in general, no data should bring no results in a report.
Since you have a session variable as part of the report, and this variable initialization failed, you get this error.
-
need help to identify the responsible application of integration...
Hello
I'm a guy MSSQL and Oracle is still a little mysterious to me. I'm looking for assistance tracking the application in an environment that is responsible for special inserts.
For example, I have 10 different programs running and inserting values to a DB. I need to know which of them inserts a '0' in a particular column.
I found a trigger that will tell me the user, unfortunately these programs use a credential that is shared so that it does not help me... here is what I have:
CREATE OR REPLACE TRIGGER check_for_zero_insert
AFTER INSERTION
ON DATA_TABLE_0001
FOR EACH LINE
DECLARE
v_username varchar2 (10);
BEGIN
-Find user name of the person making the INSERTION in the table
SELECT user INTO v_username
DOUBLE;
-Insert record into the audit table
INSERT INTO audit_table
(instance.
seems,.
user name ( )
VALUES
(: seems,)
: instance.
v_username);
END;
But even once, user name will not help me, I need the originating instance if possible (a name of the executable, PID or something to identify the specific application of the other side.)
There are other columns of information in session $ v - you might find program, machine or a process (PID process) useful.
declare
v_user varchar2 (30); v_program varchar2 (64); v_machine varchar2 (64); v_process varchar2 (24);
Start
Select the process, machine, program, osuser
in v_user, v_program, v_machine, v_process
session $ v where sid = sys_context ('userenv', 'SID');
end;
/
-
identify the tables that are affected by a transaction
Hi guys,.
I am running version:
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE Production 11.2.0.3.0
AMT for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
Is it possible to identify the SQL code or the tables involved in a transaction by looking at the transaction$ v?Just wrote a small application, but can't test it in my DB... Just check it...
Basically CREATE all the views will provide some information.SELECT t.ses_addr, s.sid, p.object_id, D.OBJECT_NAME,s.command FROM v$transaction t, v$session s, V$locked_object p, dba_objects d WHERE t.ses_addr = s.saddr AND p.session_id = s.sid AND d.object_id = p.object_id;
The command column is a code displays what kind of operation is being currently... the explanation of the code can be mentioned in the documentation:
http://docs.Oracle.com/CD/B19306_01/server.102/b14237/dynviews_2088.htm
See you soon,.
Manik. -
the current user of the session &; current schema
Hi all
ACC to a url
"
o CURRENT_USER: the name of the user whose privilege the session is running
in the framework.
o SESSION_USER: the name of the user who originally created this session? who is online
in. It is constant for a session.
o CURRENT_SCHEMA: the name of the default schema that will be used to resolve references
for objects not qualified.
"
Session user is clearly making the distinction. My question is that is there any situation when the CURRENT_USER and CURRENT_SCHEMA is different? My understanding is that when we have a program of sup with authid define, then the user of the session I (if another user not the define called)
is different and the current_schema is different. The current_schema is definers schema while the user of the session is the Summoner of the program overtime. I guess that this is a good understanding.
Is EQUIVALENT to current_user, current_schema? If this is not the case, if someone can cite a small program to show the difference?As others have said, current_schema contols which schema for unqualified names are resolved in. It can be changed using:
alter session set current_schema =
or in a stored procedure liike authid clause:
SQL> Create Procedure test_definer as 2 l_user VARCHAR2(30); 3 l_current_user VARCHAR2(30); 4 l_session_user VARCHAR2(30); 5 l_current_schema VARCHAR2(30); 6 begin 7 select user into l_user from dual; 8 9 select Sys_Context('USERENV', 'CURRENT_USER') 10 into l_current_user 11 from dual; 12 13 select Sys_Context('USERENV', 'SESSION_USER') 14 into l_session_user 15 from dual; 16 17 select Sys_Context('USERENV', 'CURRENT_SCHEMA') 18 into l_current_schema 19 from dual; 20 21 Dbms_Output.Put_Line ('User is: '||l_user); 22 Dbms_Output.Put_Line ('Current User is: '||l_current_user); 23 Dbms_Output.Put_Line ('Session User is: '||l_session_user); 24 Dbms_Output.Put_Line ('Current_schema is: '||l_current_schema); 25 end; 26 / Procedure created. SQL> Create Procedure test_current 2 authid Current_user as 3 l_user VARCHAR2(30); 4 l_current_user VARCHAR2(30); 5 l_session_user VARCHAR2(30); 6 l_current_schema VARCHAR2(30); 7 begin 8 select user into l_user from dual; 9 10 select Sys_Context('USERENV', 'CURRENT_USER') 11 into l_current_user 12 from dual; 13 14 select Sys_Context('USERENV', 'SESSION_USER') 15 into l_session_user 16 from dual; 17 18 select Sys_Context('USERENV', 'CURRENT_SCHEMA') 19 into l_current_schema 20 from dual; 21 22 Dbms_Output.Put_Line ('User is: '||l_user); 23 Dbms_Output.Put_Line ('Current User is: '||l_current_user); 24 Dbms_Output.Put_Line ('Session User is: '||l_session_user); 25 Dbms_Output.Put_Line ('Current_schema is: '||l_current_schema); 26 end; 27 / Procedure created.
Copyright being the default, test_definer procedure works with the privileges and in the schema of the user Thatcreated in this oracle of $ case ops. The test_current procedure operates in the schema of the user calling him and privileges. So if we call both in the scheme of the owner that they are actually the same:
SQL> exec test_definer; User is: OPS$ORACLE Current User is: OPS$ORACLE Session User is: OPS$ORACLE Current_schema is: OPS$ORACLE PL/SQL procedure successfully completed. SQL> exec test_current; User is: OPS$ORACLE Current User is: OPS$ORACLE Session User is: OPS$ORACLE Current_schema is: OPS$ORACLE PL/SQL procedure successfully completed.
However, if we create a new user and give that run them both, we'll see a feel:
SQL> create user a identified by a; User created. SQL> grant create session to a; Grant succeeded. SQL> grant execute on test_definer to a; Grant succeeded. SQL> grant execute on test_current to a; Grant succeeded. SQL> connect a/a Connected. SQL> exec ops$oracle.test_definer; User is: A Current User is: OPS$ORACLE Session User is: A Current_schema is: OPS$ORACLE PL/SQL procedure successfully completed. SQL> exec ops$oracle.test_current; User is: A Current User is: A Session User is: A Current_schema is: A PL/SQL procedure successfully completed.
John
-
Query Builder session parameters as a resolve to ORA-01843 (not a month valid)
Hi all! I am new to Oracle and RDBMS, sorry for a fake question.
I'm doing a few queries to a tutorial (10 g XE) database with Query request Builder Express 2.1000039.
I ask the column with id, order date and order status. in a column of the date as a condition command 'where' I've wrote:
and got an error "ORA-01843: not one month valid.">= to_date('23-JUN-2006', 'DD-MON-RRRR')
Then I edited the line filter condition:
and got a decent result, BUT resulting table date format DD-MM-RR.>= to_date('23-JUN-2006', 'DD-MON-RRRR', 'NLS_DATE_LANGUAGE = american')
So, here are a few questions:
1. can I change settings of session (for example
) so, to use it in the query designer, before you generate a request itself and do not write "NLS_DATE_LANGUAGE = american' whenever I am inserting data to a field of date data type?"alter session set NLS_DATE_FORMAT = 'DD-MON-RRRR'
2. I wonder why resulting table date format is "DD-MM-RRRR. How can I get a data exactly in a date format 'DD-MON-RRRR', how I am specifying in a query?
My operating system is Windows 7 Home Basic Edition, NLS_DATE_FORMAT is DD-MON-YYYY in 2 cases, the register and, respectively, in the environment variable.
SQL * Plus displays all tables in query mentionted correctly, corresponding to an "ALTER SESSION...". PARAMETERS.
Hope for your help, guys. Thanks for the replies!>
Can I change "Application Builder-> Application-> change security attributes" without creating applications?
>No you need to create an application, and as I said application-level settings determine the application only, is not a solution. Furthermore, I'm not sure that this property is available in your version of the Apex.
I tried to change the session using SQL commandsand then I went back to the Query Builder, but it doesn't change anything, it seems different sessions are used to connect to the database.
Yes, I'm sorry, but I have no solution for you, maybe there is a way to change this somewhere in the admin part, but I have no rights admin here and I can't test anything.
I hope that a few experts hops on the thread ;)
-
People - I am really stumped on this one and need help. I train a new employee on our CF 9.0.2 EA environment and I wanted him to run some of our scheduled tasks. I had to open a session in the production with the admin site and password (one-time password using only the id of cfadmin "generics") without incident.
He sailed to the scheduled tasks without incident, clicked the button "Run the scheduled task" and upward jumped a message to open a session in Administrator CF. Never, ever have I seen this happen before. I checked, and no one else was recorded in the CF administrator at the time.
The application log contained the following warning: "CFADMIN", "there was an error while checking the token. The session has expired or unauthenticated access is suspected. »
I have google, Yahooed and anything else in the meantime and can only end of references to CF10 and single account sessions. Yet once we checked it was the on using only the administrator see (I know because I am just another one who knows the admin password). We are all both in the same group of security for the server (Windows 2003 R2) administration have the same level of security to the database - read-only (MS SQL Server 2005), but none of this is important since we are through THE and by using the IUSER or IWAM permissions. Doesn't seem to matter if the integrated Windows authentication check or not in IE options either.
I tried to separate application ID and password security - but I got the same error message.
All ideas are most appreciated.
Libby
Charlie - thank you very much for your help. Although you have identified the real problem, unfortunately I have always a solution. But I kept in the back of my mind...
But just recently, I was hit with this same problem myself. As a last resort, I clean my cookies and all my temporary Internet files. For me, that did the trick.
My store is running the most vanilla of CF9 environments possible, Web site instance unique, the only database MS SQL Server, IIS 7 on a Windows 2008 R2 server. Absolutely not the bells and whistles.
Again, thank you for taking the time to read my post and you offer thoughts and support. Without the help of specialists like you - well - I don't know where I'd be.
Maybe you are looking for
-
Problems of my iPhone 4 Hello!
Проблемы мой iPhone 4 ЗДРАВСТВУЙТЕ! Я к прозьба разблокировать мой iPhone вам обращаюсь! БЫЛ ВОПРОС n ТЕЛЕФОНОМ, Я СОЗДАЮ ОДИН СБРОС ПОСЛЕ ЧЕГО ОН ПРОСИЛ ЧТОБЫ ВВЕСТИ ДАННЫЕ ПРЕДЫДУЩЕГО ВЛАДЕЛЬЦА! НО, ЕГО Я НЕ ЗНАЮ А ИМЯ Я КУПИЛ В МАГАЗИНЕ КОМИССИИ!
-
Help please
-
2000 laptop... black screen after replacing the screen"
I dropped the cell phone cracked screen, replaced the screen with a controlled with surgeons of the screen. Screen remains black, external monitor works. The brightness keys do not move the progress bar. All bars are gray. (assumes that the replaceme
-
HP 2510P with a fresh install of Win 7 64 ultimate. Device Manager is with the following errors and I can't find the drivers on the download page. SD card reader does not work so I guess that one of them is the SD reader, but the watch download page
-
HP pavilion g4-1318tx - unmanned support page. used g4-1318dx but windows graphic driver
I downloaded and installed the graphics of Pavilion G4-1318dx driver (since HP Pavilion G4-1318tx has no support driver page when searched pages) but there is no change in the quality of the graphics of the laptop. Windows 7 ultimate still mark the '