APEX5, workspace of monitoring reports - sql and growing period?
APEX5 activity monitor has good relationships
(1.) where is the SQL for reports of monitor?
(2.) what is the SQL for the connection attempts with results of authentication?
2.) also where I can increase the time interval for the storage of the parameters of the monitor?
rgrds Paavo
Paavo wrote:
APEX5 activity monitor has good relationships
(1.) where is the SQL for reports of monitor?
In the workspace APEX Oracle Administration app (4350 ID). You can check this (and the other applications in the App Builder) by importing them into your workspace in the folder/apex/builder in the ZIP for installation.
(2.) what is the SQL for the connection attempts with results of authentication?
select /* APEX4350P4a */ l.attempts, l.login_name, l.application, l.owner, l.authentication_method, l.access_date, l.ip_address, decode(nvl(l.authentication_result,0), 0,m.AUTH_SUCCESS, 1,m.AUTH_UNKNOWN_USER, 2,m.AUTH_ACCOUNT_LOCKED, 3,m.AUTH_ACCOUNT_EXPIRED, 4,m.AUTH_PASSWORD_INCORRECT, 5,m.AUTH_PASSWORD_FIRST_USE, 6,m.AUTH_ATTEMPTS_EXCEEDED, 7,m.AUTH_INTERNAL_ERROR, l.authentication_result) authentication_result, l.authentication_result authentication_result_code from ( select count(*) attempts, count(distinct upper(login_name)) login_name, count(distinct application) application, count(distinct owner) owner, count (distinct authentication_method) authentication_method, count( distinct to_char(access_date,'YYYY.MM.DD')) access_date, count( distinct ip_address) ip_address, nvl(authentication_result,0) authentication_result from wwv_flow_user_access_log_v l where security_group_id = :flow_security_group_id and access_date >= sysdate - nvl(:p4_time,1) and ( :P4_APPLICATION is null or application like '%'||:P4_APPLICATION||'%') and (:P4_USER is null or lower(login_name) like '%'||lower(:P4_USER)||'%') group by nvl(authentication_result,0) ) l, (select wwv_flow_lang.system_message('AUTH_SUCCESS') auth_success, wwv_flow_lang.system_message('AUTH_UNKNOWN_USER') auth_unknown_user, wwv_flow_lang.system_message('AUTH_ACCOUNT_LOCKED') auth_account_locked, wwv_flow_lang.system_message('AUTH_ACCOUNT_EXPIRED') auth_account_expired, wwv_flow_lang.system_message('AUTH_PASSWORD_INCORRECT') auth_password_incorrect, wwv_flow_lang.system_message('AUTH_PASSWORD_FIRST_USE') auth_password_first_use, wwv_flow_lang.system_message('AUTH_ATTEMPTS_EXCEEDED') auth_attempts_exceeded, wwv_flow_lang.system_message('AUTH_INTERNAL_ERROR') auth_internal_error from dual) m
Note that it is using undocumented objects that may not be available in your workspace. Create your own version of the report by using the published views APEX.
2.) also where I can increase the time interval for the storage of the parameters of the monitor?
I've never seen anything to indicate that these periods are configurable. You should capture the required information in the views in your own tables APEX custom on a daily basis, using a scheduled task. Then, you have a complete control on the retention periods and worried when and what APEX.
Tags: Database
Similar Questions
-
learning SQL and pssql, xml, forms and report
I learned sql and plsql I donot Xml and forms and reports learn by own by easy method
by sql and psql we learned basic on the rise, things of time ranging from online book (another way to practice and understand the concepts)
repo, xml, sql, forms and pssql of learning javascript:; rt learning SQL and pssql, xml, forms and reportfor beginners
-
Customize the FDM process monitor reports
Hi all
The FDM process monitor reports can be customized to the location of FDM group/hide/show, please suggest.
Kind regards
SanjeevThe reports are relatively easy to treat. Open the program client FDM (Workbench), expand the reports tab and then you can change the report from this point. I would recommend to copy the existing report and work on a copy in case where. If you have to write a report of basic skills (crystal reports / access reports), it should be fairly simple. If not, may take some studying to learn how to change the report. In addition, a query SQL/T-SQL basic writing ability would server you well too.
The report used by FDM tool is Active Reports. They have online user guide; However, it is not terrible:
http://www.datadynamics.com/help/ActiveReports6/arGETActiveReportsDesigner.html
-
Performance monitor reports OS check failure
A few days ago Norton IS (to date) has reported that it had prevented a Trojan attack. I ran Norton Power Eraser and removed the Trojan horse. Also ran Malware Bytes it didn't report any problems.
However, since then, I noticed some strange things.
1. the performance reports monitor produces virus - anti but Norton is short. Have seen other posts of this topic and that it does not cause a problem, I'm happy wait for the fix fully tested in next SP.
2. performance monitor reports also under alltests OS checks failed, version OS check Failed.
3. I tried to run Fix IT for a similar sounding problem and get the message in case of problem cannot continue because an error has occurred. Download the utility for troubleshooting and enforcement it detects no problem.
4. Furthermore, in performance under traceptHeader monitor, I get this message "the WMI class data service is not available.
5. I tried to run restore but that crashes after it restarts.
6 folder Admin Tools proved to be empty, but which were fixed by downloading a new set of tools.
I presume that the Trojan horse did some damage before he was eliminated.
It is better to repair Windows running or is there something else I need to do?
Win 7 64 bit SP1 entirely up-to-date, Norton IS perfectly up-to-date.
Thank you
Derek
Hello DerekNB,
I thank you very much for the update on the question and sorry for delay acknowledgment.
I really appreciate your efforts to solve the problem. It is worth noting that you have been able to determine the root cause and solved the problem. The steps that you updated will help other members of the community to solve similar problems.
In addition to this, feel free to answer in the case where you are facing in the future other problems with Windows. We will be happy to help you again.
Kind regards.
-
ACS 5.2 monitoring &; reporting the integrity of databases
Hello
Is it possible to change or remove the monitoring & reports on GBA 5.2, 1121 device database? It is a question for certain non-conformities of the security policy.
ACS CLI interface, it is possible to remove ACS log files, but I think that it is not possible to alter or change the database monitoring & Reporting. Is this true?
Hello
I don't see this as possible. As when you connect to the CLI of ACS you go just the stuff of ACS application and some newspapers. Database cannot be deleted or changed from there
Thank you
Waris Hussain
-
Master-detail functionality between the regions of PL/SQL and IR possible?
4.2.1
THM 2
Hi all
We have two regions in a page. The upper region is a region of PL/SQL that lists the 5 best wages by Dept. This was not done using traditional reports because management wanted a "dashboard" as the look and feel that is already existing and what is happening in that it is a pl/sql block that has the sliders and the necessary HTML, CSS in there.
Below that is an IR when the user clicks on the dept of region of PL/SQL, it will refresh the IR below to display all employees in this Department
Top of the page shows region of PL/SQL
EMP name Dept wage
Emp1 10 10000
EMP2 10 950
Emp3 20 800
The Dept field is a hyperlink.
When we click on Dept on this region of PL/SQL
The lower IR should be updated (without submit page)
Output
Emp1 10 10000
EMP2 10 950
It is a kind of master-detail relationship between PL/SQL and Report (Detail) (Master) area Interactive
We can hyperlink in the SQL in pl/sql area, but you wonder how trap line and pass the dept id to the IR and get this region to refresh account?
All suggestions from the experts?
Thank you
Ryan
It is a way to pass the info in connection
Perform the dynamic Action of the link column report
The dynamic action can submit the session state value, and then refresh the IR.
On either by the way, you must create dynamic PL/SQL region to solve this problem, see this
APEX reports: layout custom with a column named (model line)
-
Hello friends,
My requirement is
I want to create a table. Presents some columns to display text.
so my question is,
What is the difference between a Standard report column and display text (escape special characters) in the attribute column property?
Kind regards
Arianne.
Hi ujwala1234,
ujwala1234 wrote:
Hello friends,
My requirement is
I want to create a table. Presents some columns to display text.
so my question is,
What is the difference between a Standard report column and display text (escape special characters) in the attribute column property?
Kind regards
Arianne.
Here is the difference:
- Standard report column: this is used when your column in the SQL query returns the HTML markup. For example the query SQL with APEX_ITEM API columns or columns where you have mixed data in the column with the markup. In short, APEX rendering engine treats the column as HTML markup and analysis accordingly to display the required HTML element.
- Display text (escape special characters): this type analysis the column data in the form of data stored in the database (no HTML). During analysis if the data contains special characters then it escapes and displays the data.
Yes, you can mix the manual in the form of built on APEX_ITEM with normal standard report (display text) columns.
I hope this helps!
Kind regards
Kiran
-
Are the "Oracle Hyperion Reporting and Analysis" and "Oracle Hyperion Financial Reporting," one and the same product?
Alanysis and Hyperion reports has a scope of report include Hyperion Finanicial Reporting, web analytics services RA framework and the Foundation as a layer application and client level there EMP Workspace, SmartView etc.
Thank you
~ KKT ~.
-
EUL5. SQL and other administrative issues
I am responsible for creating reports for an application based on Oracle.
As part of the purchase, the supplier of the application supplied discoverer. The seller installed discoverer. The provider support is not very well on their own request, so I don't even try to get help from their share of issues of discoverer.
Some of the users of the application build reports using discoverer; I, personally, hate it.
I am, by nature of my post, considered the Discoverer administrator, however. I don't know anything about the software, but have recently found how I can get the end-user reports shared for me (for purposes of, then, sharing to others) through SQL (I know, I know - is not supposed to do it this way - but to get my end users to track the requests on the part is like pulling teeth).
In read so, however, it became clear that I had no EUL functions installed for END user license holder.
I tried to run eul5.sql, and I get "insufficient permissions", if!
What owner eul permission would be missing, and how I give you that? (I have access level of the Oracle database sys taking the NLY).
Thank you!
Start with the following privs to the eul_owner:
CREATE SESSION
CREATE TABLE
CREATE VIEW
CREATE SEQUENCES
CREATE PROCEDURE
CREATE SESSION
CREATING USER
GRANT A PRIVILEGE
ALTER USER
-
I use a MacBook Pro, latest OSX, last InDesign CC and in the last week or so I knew some crashes that last a few seconds, some lasting a few minutes and a few I completely outside of the force. Tonight, I started to look at the activity monitor utility in these crashes and see a process called CEPHtmlEngine, which is the parent process InDesign CC. This shows that red / is no answer when InDesign does. Makes sense. It is the only process hanging in addition to InDesign.
Anyone know what this is and if there is anything I can do to fix things? I'm placing a screengrab below InDesign and CEPHtmlEngine activity monitor window. They are not suspended for the moment, but it shows 27 recent crashes - in case it helps anyone.
Things I've tried:
-restart
-rampage of indesign preferences
Here's what happened after I did these two things:
A blockage on the Welcome screen (beachball was there with the grey/blue square preloader, but the beachball is a like a vampire for the screenshots and does not)
And here's what looked like the activity monitor.
And to add to the mystery, now that I keep looking at the activity monitor, launchd (1) is also a process does not not during crashes. This seems independent of the issue of CEPHtmlEngine, at least in the activity monitor shows me. And he has 71 blocks these compared to the 27 of CEPHtml or so.
Thanks in advance for your ideas!
Post an update in the case where this help someone else. The problem is apparently solved. Here's how:
I ended up running Disk Warrior and got a report of pg 54 worth of irreparable errors. 50 of these pages have been because Universal Type Client of the Extensis Office so that I could access their fonts so I installed freelance. ~ 500 files had given resource that is proven to be damaged. I decided to uninstall using instructions and a Terminal here script
http://www.Extensis.com/support/knowledge-base/uninstalling-universal-type-client-on-Mac-o s-x.
I had to change the default security preferences to enable.
then indesign wouldn't launch because extensis (parent utc) has a plug in called FMCore that indesign necessary at the launch - universal type of thinking was always there (indesign didn't know it was uninstalled). and by clicking on a button to ok the missing extension does not work. There was not clickable.
Then, I uninstalled indesign and reinstalled, trashed prefs, I met the same problem of FMCore.
It turns out that the uninstall/reinstall indesign was not necessary. I searched my computer for plugins to extensis, trashed all the (they were in my folders app pshop to indesign, illustrator). After that I've trashed those, indesign finally launched with no crashes and seems spry and nimble again.
just to be sure that all the pain was gone, I reused diskwarrior and am coming especially clean.
-
How to display the output of PL/SQL and difficulty package below error (please help)
-PACKAGE SPECIFICATION AND met with success, but I see no way out, an error is also here... Please help. How do I solve this problem
-with the code
CREATE OR REPLACE PACKAGE package_variables
-Declare the components of a package.
Established PROCEDURE (VARCHAR2 value);
Public FUNCTION get RETURN VARCHAR2;
END package_variables;
/
CREATE OR REPLACE PACKAGE BODY package_variables
-Declare the package-scoped variable.
variable VARCHAR2 (20): = "initial value";
-Define the function
Get function RETURN VARCHAR2 IS
BEGIN
RETURN variable;
END get;
-Define the procedure.
PROCEDURE set(value VARCHAR2) IS
BEGIN
variable: = value;
The END value;
END package_variables;
/
Result VARIABLE VARCHAR2 (20)
CALL package_variables.get () IN: result;
SELECT: result AS result FROM dual;
RUN package_variables.set ("new value '");
CALL package_variables.get () IN: result;
SELECT: result AS result FROM dual;
/*
OUTPUT
PACKAGE compiled package_variables.
PACKAGE compiled package_variables BODY.
Error at startup on line 2 of the command:
CALL package_variables.get () IN: results
Error report:
SQL error: ORA-01008: not all variables
01008 00000 - "not all variables.
* Cause:
* Action:
RESULTS
--------------------------------
1 selected lines
anonymous block filled
Error at startup on line 2 of the command:
CALL package_variables.get () IN: results
Error report:
SQL error: ORA-01008: not all variables
01008 00000 - "not all variables.
* Cause:
* Action:
RESULTS
--------------------------------
1 selected lines
*/The package name is package_variables (note the 's'. Plural.) But using package_variable (in the singular) in your call.
Also select in as a SQL statement seems to be not valid. You encapsulate a begin - end around her block.SQL> begin 2 select package_variables.get into :outcome from dual; 3 end; 4 / PL/SQL procedure successfully completed outcome --------- Initial Value
-
Hi, I'm trying to publish a report by CR I do my report on my system and run it successfully but when I published my report or report server, and then I face the following problem
Error in file C:\Business Objects\BusinessObjects Enterprise 11\Data\procSched\CIS03.reportjobserver\~tmp1a6c60b61dde8b81.rpt: Database Connector error
This problem is solved when I removed my query IF condition but with IF condition I am facing the same problem. I am not experiencing this problem when I have this on my hand, but only after pulishing so please help me if any more that can be is the procedure in which i am facing the problem
create or replace
PROCEDURE cm_discon_fld_activity)
p_rep_cursor IN OUT cisadm.cr_package.cr_rpt_type,
prm_unit IN cisadm.ci_char_val.char_val%TYPE,
prm_fa_status IN cisadm.ci_fa.fa_status_flg%TYPE,
prm_fa_type_cd IN cisadm.ci_fa.fa_type_cd%TYPE,
prm_zone IN cisadm.ci_char_val_l.descr%TYPE,
prm_date_from IN cisadm.ci_fa.cre_dttm%TYPE,
prm_date_to IN cisadm.ci_fa.cre_dttm%TYPE
)
AS
BEGIN
IF TRIM (prm_fa_status) = 'C' THEN
OPEN FOR P_rep_cursor
Select sa.acct_id, pn.entity_name,.
(SELECT char_val
OF cisadm.ci_prem_char
WHERE prem_id = sa.char_prem_id
AND char_type_cd = 'UNIT '.
AND TRIM (char_val) = NVL (prm_unit, TRIM (char_val)) and rownum = 1) unit of
(SELECT descr
OF cisadm.ci_prem_char pc, cisadm.ci_char_val_l cvl
WHERE pc.char_type_cd = cvl.char_type_cd
AND pc.char_val = cvl.char_val
AND prem_id = sa.char_prem_id
AND cvl.char_type_cd = 'ZONE '.
AND descr = NVL (TRIM (prm_zone), TRIM (descr)) and rownum = 1) zzone,
FA.cre_dttm, FA.fa_type_cd, FA.fa_status_flg,
--(sélectionnez work_dttm dans la ci_fa_stage_up où fa_id=fa.fa_id) dt_of_work,
READ_DTTM dt_of_work,
FA.fa_id, FA.disp_grp_cd, DGL. Descr,
(select sum (cur_amt) in the ci_ft where sa_id in (select sa_id from the ci_sa where acct_id = his .acct_id)) os_amt
FA ci_fa, ci_sp sp, ci_sa sa, ci_acct_per ci_per_name pn, ci_disp_grp_l dgl, ci_mr_stage_up msp, ci_sp_mtr_hist smph, ap, ci_sp spp.
"where - fa.cre_dttm between January 1, 2009"-January 2, 2009.
READ_DTTM BETWEEN prm_date_from / * 1 January 2009 ' * / AND prm_date_to
"/ *'' 02-JAN-2009 * /-from" 16-Feb-2010 to 17-Feb-2010 "
and TRIM (fa.fa_type_cd) = upper (prm_fa_type_cd) - in ("G-LOCK','G-UNLOCK','SG-LOCK','SM-REMVL','M-REMVL")
AND TRIM (fa.fa_status_flg) = 'C '.
and fa.sp_id = sp.sp_id
and sp.prem_id = the .char_prem_id
and sa.sa_type_cd like 'U-%'
and sa.SA_STATUS_FLG = '20'
AND USE_ON_BILL_SW = 'Y '.
and his .acct_id = ap.acct_id
and ap.per_id = pn.per_id
and msp. MTR_CONFIG_ID = smph. MTR_CONFIG_ID
and smph.sp_id = spP.sp_id
AND SPP. SP_ID = SP. SP_ID
AND smph. REMOVAL_DTTM IS NULL
and pn. PRIM_NAME_SW = 'Y '.
and fa.disp_grp_cd = dgl.disp_grp_cd;
- AND SA. ACCT_ID = '9739021000';
END IF;
-OTHER
IF TRIM (prm_fa_status)! = 'C' THEN
OPEN FOR P_rep_cursor
SELECT sa.acct_id, pn.entity_name,
(SELECT char_val
OF cisadm.ci_prem_char
WHERE prem_id = sa.char_prem_id
AND char_type_cd = 'UNIT '.
AND TRIM (char_val) = NVL (prm_unit, TRIM (char_val)) and rownum = 1) unit of
(SELECT descr
OF cisadm.ci_prem_char pc, cisadm.ci_char_val_l cvl
WHERE pc.char_type_cd = cvl.char_type_cd
AND pc.char_val = cvl.char_val
AND prem_id = sa.char_prem_id
AND cvl.char_type_cd = 'ZONE '.
AND descr = NVL (TRIM (prm_zone), TRIM (descr)) and rownum = 1) zzone,
FA.cre_dttm, fa.fa_type_cd, fa.fa_status_flg,
(SELECT work_dttm
OF cisadm.ci_fa_stage_up
WHERE fa_id = fa.fa_id) dt_of_work, fa.fa_id, fa.disp_grp_cd,.
DGL. Descr, (SELECT SUM (cur_amt)
OF cisadm.ci_ft
WHERE sa_id IN (SELECT sa_id
OF cisadm.ci_sa
WHERE acct_id = sa.acct_id))
os_amt
FA cisadm.ci_fa,.
cisadm.ci_sp sp,
cisadm.ci_sa her.
cisadm.ci_acct_per ap,
cisadm.ci_per_name pn,
cisadm.ci_disp_grp_l dgl
WHERE fa.cre_dttm BETWEEN prm_date_from / * 1 January 2009 ' * / AND prm_date_to
/ *'02-JAN-2009'* /.
AND TRIM (fa.fa_type_cd) IN NVL
(upper (prm_fa_type_cd), TRIM (fa.fa_type_cd))
-("G-LOCK','G-UNLOCK','SG-LOCK','SM-REMVL','M-REMVL")
AND TRIM (fa.fa_status_flg) = prm_fa_status
-AND TRIM (fa.fa_status_flg)! = « C »
AND fa.sp_id = sp.sp_id
AND sp.prem_id = sa.char_prem_id
AND sa.sa_type_cd LIKE 'U-%'
and sa.SA_STATUS_FLG = '20'
- AND USE_ON_BILL_SW = 'Y '.
AND sa.acct_id = ap.acct_id
AND ap.per_id = pn.per_id
AND pn.prim_name_sw = 'Y '.
AND fa.disp_grp_cd = dgl.disp_grp_cd;
END IF;
END cm_discon_fld_activity;
I am facing the same problem in each report in which i use IF condition can someone help me I use CR XI Business ObjectPerhaps this question would be better asked on a forum of the business object.
As it is, it is not really something wrong with your PL/SQL code programmatically. The question seems to be in CR.
-
Autocommit DDL: difference between SQL and SQL Developer * more?
I asked this in the SQL forum (commit auto DDL: difference between developer SQL and command-line client?), but it has suggested it might be a problem in SQL Developer, so I thought I would ask here.
I'm trying to understand what exactly happens when an error occurs when a transaction is committed because of a DDL statement. I noticed that with SQL Developer, if the DDL statement CREATE TABLE, the statement is executed, even if the DML statements which I entered before CREATE TABLE violates a deferred constraint, so that the transaction fails. In SQL * Plus, it's not the case: the table is not created. I have no automatic validation. I'm using Oracle 10 g XE.
That's what happens in SQL * more:
If I put the same code in SQL Developer (versions 1.5.5 and 2.1.0.63), the table is created.SQL> create table table1(a number); Table created. SQL> alter table table1 add constraint table1_a_uq unique(a) deferrable initially deferred; Table altered. SQL> insert into table1 values(1); 1 row created. SQL> commit; Commit complete. SQL> insert into table1 values(1); 1 row created. SQL> create table table2(b number); create table table2(b number) * ERROR at line 1: ORA-02091: transaction rolled back ORA-00001: unique constraint (BOEK.TABLE1_A_UQ) violated SQL> select * from table2; select * from table2 * ERROR at line 1: ORA-00942: table or view does not exist
This is my script:
And this is the output of SQL Developer:create table table1(a number); alter table table1 add constraint table1_a_uq unique(a) deferrable initially deferred; insert into table1 values(1); commit; insert into table1 values(1); create table table2(b number); select * from table2;
As you can see, the table is created in SQL Developer, but not in SQL * more.create table succeeded. alter table table1 succeeded. 1 rows inserted commited 1 rows inserted Error starting at line 9 in command: create table table2(b number) Error report: SQL Error: ORA-02091: transaction rolled back ORA-00001: unique constraint (BOEK.TABLE1_A_UQ) violated 02091. 00000 - "transaction rolled back" *Cause: Also see error 2092. If the transaction is aborted at a remote site then you will only see 2091; if aborted at host then you will see 2092 and 2091. *Action: Add rollback segment and retry the transaction. B ---------------------- 0 rows selected
I wonder why it's different.Well Yes, it is a slightly different situation, because you issue 1 statement that executes internally 2 statements.
But the problem is the same: the error handling. Where sqlplus rejects again (implicit) statements, sqldev goes ahead and runs them anyway. Personally, I'd say sqldev is more consistent and sqlplus is not, because run the following instructions (explicit).Kind regards
K. -
(Updated report) SQL query
Is it possible to convert an existing SQL query report area to an "application SQL (editable report)? If not, where should we do to create a SQL (editable report) region?I had the same problem.
The way I ended up converting my sql to a (editable report) SQL query was:
Create a new page with the type of form and tabular presentation, run through all the steps required Wizard.
Once done, you can go back and modify the report and paste in your original sql code.
Worked for me.
It will be useful.
Jen
Published by: munsej on August 7, 2009 08:42
-
interesting SQL and plsql problem.
The web application has a function to generate reports based on what the user selects, which includes this as the fields to display in the report, what order to display those selected fields, etc.
Now, one of the field called suffix field is need removed the drop-down lists SELECT and ORDER BY. Please advise on how to solve the problem when the suffix record is removed from the database, and how we can increase the index [#] of these later OrderByField?
reportId reportField reportValue
====================
1 orderByField fname [0]
1 orderByField [1] MI
1 lname orderBytField [2]
1 orderByField [3] suffix
lname orderBytField 2 [0]
suffix of orderByField 2 [1]
2 orderByField fname [2]
2 orderByField [3] MI
In the example above, delete suffix will not affect reportId 1, but for reportId 2, if we remove the suffix, how do we record like the following?
lname orderBytField 2 [0]
2 orderByField fname [1]
2 orderByField [2] MI
I am open to any suggestion, using sql and plsql. The database is 9i.
THX.Hello
You're wright, you need to replace in the order by clause:
with d as( select 1 as reportId, 'orderByField[0]' as reportField, 'fname ' as reportValue from dual union all select 1 as reportId, 'orderByField[1]' as reportField, 'MI ' as reportValue from dual union all select 1 as reportId, 'orderByField[2]'as reportField, 'lname ' as reportValue from dual union all select 1 as reportId, 'orderByField[3]' as reportField, 'suffix' as reportValue from dual union all select 2 as reportId, 'orderByField[1]' as reportField, 'suffix' as reportValue from dual union all select 2 as reportId, 'orderByField[2]' as reportField, 'fname2' as reportValue from dual union all select 2 as reportId, 'orderByField[0]'as reportField, 'lname0' as reportValue from dual union all select 2 as reportId, 'orderByField[6]'as reportField, 'lname6' as reportValue from dual union all select 2 as reportId, 'orderByField[12]'as reportField, 'lname12' as reportValue from dual union all select 2 as reportId, 'orderByField[4]'as reportField, 'lname4' as reportValue from dual union all select 2 as reportId, 'orderByField[5]'as reportField, 'lname5' as reportValue from dual union all select 2 as reportId, 'orderByField[8]'as reportField, 'lname8' as reportValue from dual union all select 2 as reportId, 'orderByField[10]'as reportField, 'lname10' as reportValue from dual union all select 2 as reportId, 'orderByField[11]'as reportField, 'lname11' as reportValue from dual union all select 2 as reportId, 'orderByField[9]'as reportField, 'lname9' as reportValue from dual union all select 2 as reportId, 'orderByField[7]'as reportField, 'lname7' as reportValue from dual union all select 2 as reportId, 'orderByField[3]' as reportField, 'MI ' as reportValue from dual) SELECT a.reportId, 'reportField[' || to_char(DECODE(ROWNUM-min_sno,0,1,rownum+1-min_sno)-1)|| ']' as newReportField, reportValue FROM (SELECT * FROM d where d.reportValue != 'suffix' ORDER BY reportId, to_number(substr(reportField, instr(reportField, '[')+1, instr(reportField,']')-instr(reportField, '[')-1)) ) a, ( SELECT reportId,MIN(rownum) min_sno FROM ( SELECT * FROM d where d.reportValue != 'suffix' ORDER BY reportId, to_number(substr(reportField, instr(reportField, '[')+1, instr(reportField,']')-instr(reportField, '[')-1)) ) GROUP BY reportId ) b WHERE a.reportId = b.reportId;
Kind regards
Published by: Walter Fernández on January 6, 2009 16:51 - sorry I forgot the version of your database in the first post, I replaced the regular expression...
Maybe you are looking for
-
I can't print on my printer HP 3050 J611g.
I can't print documents on the printer HP 3050 has J611g from my laptop (windows 7, 32 bit). We use a wireless network, and we can print from all other devices. When I enter the IP address of the printer in my browser, the computer can see the printe
-
Grab and the attribute configuration example VI
Hi all I'm trying to get the attributes of a GigE camera. I use VI example in IMAQ "setup.vi grab and attributes. I have problem of understanding, can someone please clear my doubts below? (1) in the diagram-block before and after the block "update a
-
Sansa E280 memory card problem
My memory card micro sd will not appear as an option on my computer or my e280 access music while it is installed in my e280, but will appear when it is in the memory of my computer card reader. I use the right MSC mode on my e280. What can I do to f
-
I have windows 7 and can't download adobe flash 10.1 on a 64-bit
-
Smartphones blackBerry how to change SMS name?
I got a bb curve and wanted to upgrade to a bold 9780, then iv bought one of my friends. But when I send SMS messages, above the text I send it displays a name and date or time, as he was sent... the name that appears above the text is my friends IV