Question on V$ SESSION. STATUS column
DB version: 11.2.0.4 on Oracle Linux 6.4
V$ SESSION. STATUS: My question is about the IDLE State.
Under what circumstances does V$ SESSION. STATUS become INACTIVE for a session?
For a particular run SQL, if the session has to wait a/o lock or Table being released, will be V$ SESSION. Change of STATUS to "INACTIVE"?
If the session is waiting for an i/o for a lock or a lock, its status is ACTIVE.
However, after the current call ends its status is INACTIVE.
If the session sends multiple lines to a customer and the number of lines, such that it exceeds the size of the array, the session must make several calls to send the rows to the client. Between calls, even if she is waiting for the client to recognize the last set of rows sent, its status may be INACTIVE.
Similarly, while the session waits for the next SQL statement of the client, its status would be INACTIVE.
Hemant K Collette
Tags: Database
Similar Questions
-
Question on v$ session.status = KILLED
DB version: 10.2.0,4
Operating system: Solaris SPARC 5.10
Usually, the recording of the session killed will be absent from the result of the query. But sometimes the registration for the session killed will be present when you query v$ session with continuous KILLED = STATUS. When this happens?I agree with Satish. As seen in the place where I work, this often happens with very large transactions. Moreover, the transaction is running with the session being ACTIVE before killed, more it will appear as people KILLED due to the CANCELLATION involved in the restoration of the large transaction. The remaining sessions returns with a status KILLED can be such a wretch where several tables can always be locked by the cancellation process.
-
How to create a status column in the table
Hello everyone
I am trying to create a column of the table status in frontview Panel. I enclose a picture with her to say clearly what I say.plz tell me how to create the active status column in the table.
I want to show green for safety stock and red for safety stock below.
-
Help - Tuning query based on the status column
Hello
I have a query in which I need to fetch records based on values in the status column. It can contain the values 'A' and 'P '. A record can have an "A" record and a record of 'P '. My conditions are,
(1) when it is only 'A' record, can return 'A' record.
(2) for the 'A' and 'P' folder is there, then return 'A' record.
(3) when 'P' registration is only, then return 'P' registration.
There are about 3 records 'A' Lake and 3K 'P '. I tried to use 'by' clause queries, but performance are too bad and I am not able to use it. When running as independent queries 'A' retrieval of documents is faster compared to the records of 'P '. When running in 'by' clause of the query is suspended. Please can anyone help how can be managed?
Due to restrictions, I won't be able to view the actual code. I post here a sample.
Example code:
Thank youWITH q1 AS (SELECT * FROM tab WHERE status = 'A'), q2 AS (SELECT * FROM tab WHERE status = 'P'), q3 AS (SELECT * FROM q1 UNION ALL (SELECT * FROM q2 WHERE NOT EXISTS (SELECT 1 FROM q1))) SELECT * FROM q3 WHERE ROWNUM < 501;
KadochOne way is to use analytics like this:
SELECT * FROM (SELECT t.*, ROW_NUMBER() OVER (PARTITION BY
ORDER BY t.status) rn FROM tab t WHERE t.status IN ('A', 'P')) WHERE rn = 1 John
-
Status column of V$ LOGFILE
Hello
in 10g R2, in my database, the status column of V$ LOGFILE is empty:
Any idea?SQL> select member, status from v$logfile; MEMBER STATUS ----------------------------------- ------- D:\BASE\MYDB\UNDO\REDO04.LOG D:\BASE\MYDB\UNDO\REDO05.LOG D:\BASE\MYDB\UNDO\REDO06.LOG SQL> desc v$logfile; Nom NULL ? Type ----------------------------------------- -------- ----------------- GROUP# NUMBER STATUS VARCHAR2(7) TYPE VARCHAR2(7) MEMBER VARCHAR2(513) IS_RECOVERY_DEST_FILE VARCHAR2(3)
Thank you.Hello
In my database too
STATUS VARCHAR2 (7)
The log member status:
INVALID - file is inaccessible
STALE - content of the file is incomplete
DELETED - File is no longer used
NULL - file is in useYou have to control the column type of v$ logfile
or the status column in the journal of v$Concerning
Anurag -
Question PLSQL with variable compound column names
Hello gentlemen,
I'm new to PLSQL and I would like to display some values of columns, which are listed in the defined variable in dbms.output. I created under code, which I think it could work, but I guess that it is far from correct.
DECLARE
v_TEMP_QUERY VARCHAR2 (1000 BYTE);
v_TEMP_VALUE VARCHAR2 (1000 BYTE) := 'FILTER_01, FILTER_02';
BEGIN
FOR v_TEMP_LOOP IN
(v_TEMP_QUERY := 'SELECT DISTINCT ' || v_TEMP_VALUE || ' FROM CW_PAGE_COMPONENT_TEMPL WHERE COMPONENT_TEMPL_ID = 10000034642';
EXECUTE IMMEDIATE v_TEMP_QUERY; )
LOOP
DBMS_OUTPUT.PUT_LINE (v_TEMP_LOOP.v_TEMP_VALUE);
END LOOP;
END;Thanks in advance for your help and advice on this issue and sincerely,
Sebastian
OK, first of all, you're confused concepts here.
cursor loop FOR waiting for a slider must be provided, and yet you offer an assignment statement and a command immediately execute for it. Syntax is not valid.
Secondly, you force the way of the use of dynamic SQL, which is generally bad practice. This use of the SQL is rarely necessary, because it often indicates that functional requirements, database design, or design/code enforcement has not examined properly... the first question is "why don't you know the names of the columns to select. With dynamic columns in your query, you need some kind of dynamic code to manage the results of the query, you will not be able to reference the columns directly by name.
Thirdly, the DBMS_OUTPUT package doesn't make "blank". This may sound pedantic, but it's a common mistake that people make. There is no fill data dbms_output buffer. It relies on call code/interface to read the contents of the output buffer and display it in fact (for example, in SQL * more you use SQL * Plus the command "set serveroutput we ' to achieve)
In general, in a well designed where application you know your columns you would only make...
Start
I'm in (select distinct filter_01, filter_02 from vw_page_component_templ where component_templ_id = 10000034642)
loop
dbms_output.put_line (i.filter_01 | ',' | i.filter_o2);
end loop;
end;If the columns are dynamic, then you have three options:
(1) create a ref and pass cursor who back, extracting the content for example
sys_refcursor getRc function returns (in numbers, in colnames templ_id varchar2) is
RC sys_refcursor;
Start
Open rc for ' select distinct ' | colnames |' from vw_page_component_templ where component_teml_id =: 1' using templ_id;
return rc;
end;In SQL * more:
var r refcursor; -It creates a variable in SQL * Plus ref cursor type
Start
: r: = getRc (10000034642, ' filter_01, filter_02');
end;
/
print r; -It's SQL * command to retrieve the cursor open and display the results(2) create an object and collection of the right structure to receive the results and use execute immediate to select IN this structure.
(I will not show in this way, because it is absolute rubbish, and if you know the columns that you want to create the object and the collection, then you should not use dynamic SQL in the first place)
(3) use the DBMS_SQL package to run the query and retrieve the data from the column in position rather than example:
create or replace procedure run_query (p_sql IN VARCHAR2) is
v_v_val varchar2 (4000);
number of v_n_val;
date of v_d_val;
number of v_ret;
c number;
number d;
whole col_cnt;
Boolean f;
rec_tab dbms_sql.desc_tab;
number of col_num;
v_rowcount number: = 0;
Start
-create a slider
c: = dbms_sql.open_cursor;
-analyze the SQL statement in the cursor
DBMS_SQL. Parse (c, p_sql, dbms_sql.native);
-run the cursor
d: = dbms_sql.execute (c);
--
-Describe the columns that are returned by the SQL statement
DBMS_SQL. DESCRIBE_COLUMNS (c, col_cnt, rec_tab);
--
-Local variables Bind to return to the different columns according to their types
dbms_output.put_line (' number of columns in the query: ' | col_cnt);
1.col_cnt j
loop
case rec_tab (j) .col_type
When 1 then dbms_sql.define_column (c, j, v_v_val, 2000); -Varchar2
When 2 then dbms_sql.define_column (c, j, v_n_val); -Number
12. When can dbms_sql.define_column (c, j, v_d_val); -Date
on the other
DBMS_SQL.define_column (c, j, v_v_val, 2000); -Any other type of return as varchar2
end case;
end loop;
--
-Display columns are returned...
dbms_output.put_line ('- Columns-');
1.col_cnt j
loop
dbms_output.put_line (rec_tab (j) .col_name |') -' || case rec_tab (j) .col_type when 1 then 'VARCHAR2 '.
When 2 then 'NUMBER '.
When 12 can "DATE".
"Otherwise, 'Other' end);
end loop;
dbms_output.put_line('---');
--
-This part generates the DATA
loop
-Retrieves a row of data using the cursor
v_ret: = dbms_sql.fetch_rows (c);
-Output when no more line
When the output v_ret = 0;
v_rowcount: = v_rowcount + 1;
dbms_output.put_line (' line: ' | v_rowcount);
dbms_output.put_line('---');
-Extract the value of each column of the row
1.col_cnt j
loop
-Fetch each column to the correct data type according to the description of the column
case rec_tab (j) .col_type
When 1 then dbms_sql.column_value (c, j, v_v_val);
dbms_output.put_line (rec_tab (j) .col_name |': ' | v_v_val);
When 2 then dbms_sql.column_value (c, j, v_n_val);
dbms_output.put_line (rec_tab (j) .col_name |': ' | v_n_val);
12. When can dbms_sql.column_value (c, j, v_d_val);
dbms_output.put_line (rec_tab (j) .col_name |': ' | to_char (v_d_val,' DD/MM/YYYY HH24:MI:SS'));))
on the other
DBMS_SQL.column_value (c, j, v_v_val);
dbms_output.put_line (rec_tab (j) .col_name |': ' | v_v_val);
end case;
end loop;
dbms_output.put_line('---');
end loop;
--
-Close the cursor, now we're done with it
DBMS_SQL.close_cursor (c);
END;
/SQL > run_query exec ('select ename, empno, sal, deptno from emp where deptno = 10');
Number of columns in the query: 4
-Columns-
EMPNO - NUMBER
ENAME - VARCHAR2
DEPTNO - NUMBER
SAL - NUMBER
-------------
Line: 1
--------------
EMPNO: 7782
ENAME: CLARK
DEPTNO: 10
SAL: 2450
--------------
Row: 2
--------------
EMPNO: 7839
ENAME: KING
DEPTNO: 10
SAL: 5000
--------------
Row: 3
--------------
EMPNO: 7934
ENAME: MILLER
DEPTNO: 10
SAL: 1300
--------------PL/SQL procedure successfully completed.
As you can see with this method, you can extract the column details, including the name and data etc. types and then extract each line and extract the data from the column position.
Of course, this is quite complex, so it would be a last resort.
-
Question about discovery/inventory/status schedule
Hello.
I have a question.
Can I disable schedule discovery/inventory?
I'll manually run discovery/inventory during the installation of new devices.
and then I turn off hourly status?
If the calendar of the disabled state, draw the attention of job function properly?
Hi and thanks for the post.
You can go to the Discovery Portal page - the place that you have created your discovery beaches... from there, you should find an arrangement to clear the calendar of discovery/inventory.
With regard to the status, I would like to keep it to 1 hour. This is the survey that will check the health of hardware for all your devices.
If, however, you use only OME as SNMP trap receiver, you can disable this too I guess. But the icon of health on the tree view of the devices will probably not updated unless a trap happens on a particular device.
Thank you
Rob
delltechcenter.com/OME
-
Questions to extract the XMLtype column attributes
I cannot retrieve the values of a column of the XML data type. There are 16 fields and when I try to extract the data the XML snippet is that each of them in 1 great return value. I have tried everything but the problem seems to be that the domain name is an attribute and everything I try fails. I appreciate any help in advance and I'm extremely new XML so please let me know if you need more information.
With the help of Oracle 11.2.0.2 Express
-Created table that has a column of XMLTYPE OF CLOB
CREATE THE TABLE HR. XMLTABLESTORE (key_id VARCHAR2 (10) PRIMARY KEY, xmlloaddate date, xml_column XMLTYPE) AS CLOB XmlType xml_column STORE;
-Insert the XML code in the column
INSERT INTO HUMAN RESOURCES. VALUES XMLTABLESTORE (HR. XMLSEQUENCE. NEXTVAL, SYSDATE, XMLType (bfilename ('XMLDIRX', 'PROD_20110725_211550427_220b.xml'),
nls_charset_id ('AL32UTF8')));
I managed to get the values for
SELECT extract (xml_column, ' / / MapItem/@ProductNum "") ProductNum go OF HR. XMLTABLESTORE
'63481062975'
Vain, get the data under the domain name, as it is to return all names or values
SELECT extract (xml_column, ' / / MapItem/Field/@Name "") OF HR. XMLTABLESTORE
'lowDispUnitsPerPackdosageFormmedicaidUnitTypemedicareUnitTypemedicareUnitsPerPackunitConversiontypeunitMeasurepricingUnitMeasurelabelerCodeproductNumdescriptionlongDescriptiondesiIndicatorgenericBrandTypeendoOrgCode'
How can I return a row of data both for the name and value?
<? XML version = "1.0"? > < entries >
< ProductNum category = NDC "634810629" = "634810629" Name = "634810629" Ndc9Flag = "true" >
< = field name "type" Type = "java.lang.String" Value = "Category" / > "
< name of field = "productNum" Type = "java.lang.String" Value = "634810629" / > "
"" "< MapItem ProductNum = NDC"63481062975"="63481062975"Ndc9Flag ="false"name ="PERCOCET 10/325 MG x 100 UD' status = "0" Description ="PERCOCET 10/325 MG x 100 UD ' MedicaidUnitsPerPack ="100.0"MarketEntryDate ="2001-11-23 00:00:00 "FirstSalesDate =" 2001-11-23 00:00:00 "fdaApprovalDate ="2001-11-23"fdaRegName ="000000006348162975"ManuTermDate ="2003-09-30 00:00:00 "ShelfLifeExpDate =" 2003-09-30 00:00:00 "drugType ="Rx"DrugCategory =" N"TheraCode ="NR"EligibleForVA ="false"EligibleForPHS ="false"EligibleForASP ="false"EligibleForMedicaid ="true"NonCmtyPharmaDrug ="false">"
* < name of field = "lowDispUnitsPerPack" Type = "java.lang.String" Value = "1000" / > * "
* < name of field = 'dosageForm"Type =" java.lang.String"Value = 'TAB' / > *"
* < name of field = "medicaidUnitType" Type = "java.lang.String" Value = 'TAB' / > * "
* < name of field = "medicareUnitType" Type = "java.lang.String" Value = 'TAB' / > * "
* < name of field = "medicareUnitsPerPack" Type = "java.lang.String" Value = "100.0" / > * "
* < name of field = "unitConversion" Type = "java.lang.String" Value = "1" / > * "
* < = field name "type" Type = "java.lang.String" Value = "Item" / > * "
* < name of field = 'unitMeasure' Type = "java.lang.String" Value = "EA" / > * "
* < name of field = "pricingUnitMeasure" Type = "java.lang.String" Value = "EA" / > * "
* < name of field = "labelerCode" Type = "java.lang.String" Value = "63481" / > * "
* < name of field = "productNum" Type = "java.lang.String" Value = "63481062975" / > * "
* < field name = "description" Type = "java.lang.String" Value ="PERCOCET 10/325 MG x 100 UD" / > * "
* < field name = "longDescription" Type = "java.lang.String" Value ="PERCOCET 10/325 MG x 100 UD" / > * "
* < name of field = "desiIndicator" Type = "com.modeln.bp.catalog.CMnDesiDrugIndicator" Value = "2" / > * "
* < name of field = "genericBrandType" Type = "com.modeln.bp.struct.contract.enums.CMnGenericBrandItemType" Value = "BRND" / > * "
* < name of field = "endoOrgCode" Type = "java.lang.String" Value = "0010" / > * "
< / MapItem >
< / category >
< / input >
Thank you
ShawnYou can get a picture with lines like ['name', 'value']
with t as (select xmltype('
-
A question about the order of COLUMN sqlplus and PL/SQL
Hello everyone.
I would like to ask a question about sqlplus command COLUMN that I use in order to define the length of my queries of output columns. So, for example, I run something like:
That is why any column with the name 'the market' will be composed by sqlplus as 20 characters.COLUMN market FORMAT a20
Currently I'm working on a PL/SQL script that makes this automatic procedure, in other words, instead of manually write for each column in the above COLUMN order, it uses the DBMS_SQL. He read first as input the name of the table and then inside a loop, it detects the maximum length.
For those interested, here is the Oracle documentation page that I found (example 8)
http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_sql.htm
If everything worked well enough I managed to recover the maximum of each column in my table length, except that I don't know how to use the COLUMN sqlplus command in my PL/SQL block. I would like to do something like that (it's just a pseudo-code)
I would like to know is there a command in PL/SQL to define the appropriate column typeset in sqlplus length?FOR colIndex in 1 .. numberOfColumns LOOP currentColumnName = getColumnName(tableDescriptionObject, colIndex); currentColumnLength = getColumnLength(tableDescriptionObject, colIndex); COLUMN currentColumnName FORMAT a -- and here after 'FORMAT a' I have to write currentColumnLenth but I don't know how to proceed. END LOOP;
Thanks in advance,
DariyooshHi, Dariyoosh,
Sory, I don't think that there is a simple way to publish SQL * most orders fom PL/SQL.
PL/SQL runs in the database (back-end); There isn't any direct contact with SQL * more at the front end.The best way I know is that PL/SQL script (myfile.sql) with orders of the COLUMN, and then have SQL * more run the script (@myfile).
-
Question 3G indicator of status.
This has probably been asked a million times, and I'm sorry if there. But I have a question about the 3G symbol. It has two arrows below the top and down, when they are in gray, that means the phone is not connected? or the fact that the 3G symbol is it mean its connected? If this is the case how to disconnect and let him connect automatically and only when I ask?
I did a little research on the internet and all I get is that it is an indicator of the 3G and its 3 faster then E. Which is not useful at all. I'm worried about her be connected all the time - course fees - and if there is anyway to control.hex90 wrote:If you want to switch between 3G and 2G to save battery: Settings | Wireless Controls | Mobile Networks | Select Network.If you want to turn off data w/out using airplane mode that also turns off your calling (which it sounds like), search the Market for APNdroid. Excellent app that will do this. It's lightweight. Just make sure you have it disabled (i.e. have Internet access) before uninstalling. It doesn't do anything with wifi.
-
Question of the PAP status query
I have a message APP and you want to query the status using
. However, when I send the message, the MDS Simulator gives an error "incorrect message of PAP: bid invalid push". "" I don't know what the deal is. Does anyone have an idea what is the problem? Here's a little piece of my code making the call. Of course, I actually use a push-valid identification and address_value. .... HttpURLConnection MDS_CONN = (HttpURLConnection) MDS_HOST_URL.openConnection(); MDS_CONN.setRequestProperty("Content-Type", "multipart/related; type=\"application/xml\"; boundary=" + boundary); MDS_CONN.setRequestProperty("X-Wap-Application-Id", "/"); MDS_CONN.setRequestProperty("X-Rim-Push-Dest-Port", DEVICE_PORT); MDS_CONN.setRequestMethod("POST"); MDS_CONN.setAllowUserInteraction(false); MDS_CONN.setDoInput(true); MDS_CONN.setDoOutput(true); String Message = ""; Message += "Content-Type: application/xml\r\n\r\n"; Message += "\r\n"; Message += "http://www.wapforum.org/DTD/pap_2.0.dtd\">\r\n"; Message += "
\r\n"; Message += " \r\n"; .... This is what the message looks like: Content-Type: application/xml http://www.wapforum.org/DTD/pap_2.0.dtd">\r\n"; Message += "\r\n"; Message += " \r\n"; Message += "Thanks, I've thought about it. Here's how it should look like instead of my original code I posted.
HttpURLConnection MDS_CONN = (HttpURLConnection) MDS_HOST_URL.openConnection(); MDS_CONN.setRequestProperty("Content-Type", "application/xml"); MDS_CONN.setRequestMethod("POST"); MDS_CONN.setAllowUserInteraction(false); MDS_CONN.setDoInput(true); MDS_CONN.setDoOutput(true); String Message = ""; Message += "\r\n"; Message += "http://www.wapforum.org/DTD/pap_2.0.dtd\"\r\n []>\r\n"; Message += "
\r\n"; Message += " \r\n\r\n"; Message += "\r\n"; Message += " \r\n"; Message += " -
Question newbie Oracle SQL adding columns to count the contents of the other columns
Greetings,
I do not understand how to integrate charges to my current SQL code that would consist of food and then the elements of the car for each person. Once I understood this concept I want to apply to my real data base (Oracle) where I count medication and problems for each patient.
Using my data of test below, for example the My goal would be to have the number of columns show that Cathy had County 3 foods and an element 1 cars (the County would need to ignore the values zero in these columns). I really don't like if the counter value is repeated in every row for that person.
Select data1. Name, data1. Category, Data1.Results,
Box When data1. IN category ("food") then end FOOD data1.results,
Box When data1. IN category ('Cars') then data1. Results end of CARS
Of
(
Select T1.name name, category null, null results in a_Main T1, a_Food T2 where T1.cpi_seq = T2. CPI_SEQ
UNION
Select T1.name, 'food', T2. Food a_Main T1, a_Food T2 where T1.cpi_seq = T2. CPI_SEQ
UNION
Select T1.name, 'cars', T3. Cars a_Main T1, a_Cars T3 where T1.cpi_seq = T3. CPI_SEQ
) data1
where data1. Category is not null
by name, category
Name Category Results FOOD CARS Cathy cars Fiero NULL VALUE Fiero Cathy food Soaking of the points Soaking of the points NULL VALUE Cathy food Scoop Scoop NULL VALUE Cathy food SoftServe SoftServe NULL VALUE Dave cars Firebird NULL VALUE Firebird Dave cars Gremlin NULL VALUE Gremlin Dave cars Transport NULL VALUE Transport Dave cars Vega NULL VALUE Vega Dave food Count Chocula Count Chocula NULL VALUE Dave food Donuts Donuts NULL VALUE Dave food Little retarded Little retarded NULL VALUE Dave food Pizza Pizza NULL VALUE Mary cars Taurus NULL VALUE Taurus Mary food Bird seed Bird seed NULL VALUE Mike cars Honda NULL VALUE Honda Mike cars Jeep NULL VALUE Jeep Mike food Burger Burger NULL VALUE Mike food Fries Fries NULL VALUE Mike food Foam Foam NULL VALUE Sue cars Pinto NULL VALUE Pinto Sue cars Taurus NULL VALUE Taurus Sue food Humus Humus NULL VALUE Sue food Kabooli Kabooli NULL VALUE Select data1. Name, data1. Category, Data1.Results,
Box When data1. IN category ("food") then end FOOD data1.results,
Box When data1. IN category ('Cars') then data1. Results end of CARS,
Count (*) over (partition t1.name, data1. NTC category),
Of
(
Another way would be
Select
..
de)
all
)
Group
name
Category
order by
name
Category
Depends on your needs (for example, the final projection).
-
How do I get the invoice status columns general invoice screen
Dear all,
How to get the status of an invoice in oracle invoices
Status of an invoice-> Validated, never validated, Cancelled etc.
advice me please.
Thank you
Rehan
Published by: 877432 on October 9, 2012 03:52for
>
is not giving this feature nicely where to find these status.
>
Re-read
>
Please visit http://www.shareoracleapps.com/2010/10/api-to-find-ap-invoice-status.html
also where the invoice Validation state stored? How is the State of Validation of Bill determined? [301806.1 ID]
>
These notes point of statutes - 'Valid', ' never ', "Rehabilitation needs"If you want to "Unpaid", "Fully implemented", "" available "etc. instead of 'UNPAID', 'FULL', etc. 'AVAILABLE', you can use the research
See note in http://andyblg.wordpress.com/2012/10/09/approval-status-for-invoice-in-r12/ -
Another question on the lines of columns...
Hello world
I have to rotate a table, but without knowing the actual values of the columns.
I have:
create table (test)
cust_id varchar2 (10),
month_id number (6).
number of recipes);
insert into test ('123', 201010, 1000) values;
insert into test ('123', 201011, 1050) values;
insert into test ('123', 201012, 200) values;
insert into test ('125', 201010, 2000) values;
insert into test ('125', 201011, 2050) values;
insert into test ('125', 201012, 2005) values;
insert into test ('120', 201010, 5000) values;
insert into test ('120', 201011, 5050) values;
insert into test ('120', 201012, 2000) values;
Result:
'123' as cust_id, 1000 as month_1, 1050 as month_2, 200 month_3
"125" as cust_id, 2000 as month_1, 2050 as month_2, 2005, month_3
'120' as cust_id, 5000 as month_1, 5050 as month_2, 2000 as month_3
I still have 3 distinct values for month_id, but I do not have at the time of the selection.
Could you help me?
Thank you
MIAuser543426 wrote:
I still have 3 distinct values for month_id, but I do not have at the time of the selection.
You can use an approach to table pivot, as explained in {message identifier: = 9275390}.
Before using the PivotTable, delete its contents, run a SELECT to get your 3 distinct values and insert in the PivotTable.
Then run the SQL pivot.
No need of dynamic SQL or PL/SQL - like you are dealing with 3 columns static pivot for 3 distinct values. The actual values are not relevant to the process itself.
-
Question about REPLUSER (Session Variable)
Hi all
I try to produce a custom report to view all opportunities / activities generated by the respective user login ID, below is the detail & filter that I use in my report
Subject: Opportunity Hostory / activity history
Filter: Username (owned by the user) is equal to or in NQ_SESSION. REPLUSER
I have 8 occasions and 4 activities created by a user in Siebel On Demand, but when I apply the filter above and I have connection user-a illustrates report No. result in retrurn. I missed something? Please advice
Thanks in advance
FINAHi Fina!
You must use the VALUEOF() function to get the value of NQ_SESSION. REPLUSER.
For example, VALUEOF (NQ_SESSION. REPLUSER) will give you the login of the user who runs the report.Then in your filter, you must use the used. "" Employee Login " column (which in french translates as the e-mail address of the user...).
It will look like used. Employee Login"= VALUEOF (NQ_SESSION. REPLUSER).I did a test and it worked for me, it shows the activities that I own.
I hope this will help, do not hesitate to ask for more!
Max
Maybe you are looking for
-
WiFi Time capsule fighting my Comcast
can I use it for Time Machine without ISP change - can I change my own settings?
-
Hello I would like to purchase a Qosmio X 300 - 13F, but I'm not sure if I can find that all need the drivers for WIN XP. Someone at - it experience install the OS depending on the computer laptop a.m..?Win XP 32Win XP 64SuSe Linux 64 I just want to
-
Problem with DVD - ROM SD-C2402 (DVD multisession)
Hello I have the following problem: I recorded a DVD in different stages (multisession) with Nero 6, but I can read only the first session on my laptop (Windows 98SE). On the other hand, I have no problem with multisessions CD Could you help me in th
-
Portege R830 - ConfigFree bug at startup
Good afternoon I use a Toshiba Portege R830 (PT321E), our operating system is Windows 7 x 64. We found ConfigFree to create network profile. We have created a profile to altern Wired/Wireless connection when plug/unplug the wire. We note that at the
-
I can't open the jpeg files sent to my email in windows photo gallery.
All of a sudden I can not open jpeg files, sent to me by e-mail in my Windows Photo Gallery. I can always download pictures from my camera, but something sent to me in an e-mail message does not load and I get the message "an error prevents the phot