Details on a query
Hello
Need your help for a query
My paintings of STRUCTURES
TAB_EMP_DATA
SELECT * FROM TAB_EMP_DATA
------------------
emp_id EMAIL MGR_EMAIL SHIFT
1000 [email protected] MGR1 SHIFT-1
2000 [email protected] MGR1 SHIFT-1
3000 [email protected] MGR1 SHIFT-1
4000 [email protected] MGR1 SHIFT-1
2037 MG1 MGR2 SHIFT-1
------------------
TAB_MGR_APP [table Intersection with APP_GROUP_ID AND EMP_ID
SELECT * FROM TAB_MGR_APP
-------------------
APP_GROUP_ID APP_GROUP_NAME EMP_ID
2037 TEST 1762
2009 appgroup01 8972
-------------------
TAB_COMP_LIST [list of component for a GROUP of APPLICATIONS are stored in this table]
Select * from TAB_COMP_LIST
-------------------
APP_GROUP_ID IDENTIFIANT_COMPOSANT COMPUTERNAME MAJ T1 T2 T3 T4
2037 2121 MARKETING SHIFT-1 0 0 0 0
2037 2010 LOYALTY SHIFT-1 0 0 0 0
2037 2009 COM SHIFT-1 0 0 0 0
2009 1000 TEST1 SHIFT-1 0 0 0 0
3006 2000 TEST2 SHIFT-2 0 0 0 0
-------------------
Now
a query that displays the list of components under one application that belongs to the employee who is LOGGED IN i.e v('app_user') group
SELECT APP_GROUP_ID, id_comp, COMP_NAME, (SELECT ' SHIFT-1' FROM DUAL) SHIFT, (SELECT FROM 0 DOUBLE) Q1, (SELECT FROM 0 DOUBLE) Q2, (SELECT FROM 0 DOUBLE) Q3, (SELECT FROM 0 DOUBLE) T4 TAB_COMP_LIST WHERE APP_GROUP_ID IN (SELECT APP_GROUP_ID FROM TAB_MGR_APP WHERE EMP_ID IN (SELECT EMP_ID OF TAB_EMP_DATA START WITH EMAIL = v('APP_USER') or MGR_EMAIL = v('APP_USER') or DOT_MGR_EMAIL = v ('APP_USER') CONNECT BY PRIOR EMAIL = MGR_EMAIL))
Output
APP_GROUP_ID IDENTIFIANT_COMPOSANT COMPUTERNAME MAJ T1 T2 T3 T4
2037 2121 MARKETING SHIFT-1 0 0 0 0
2037 2010 LOYALTY SHIFT-1 0 0 0 0
2037 2009 COM SHIFT-1 0 0 0 0
I WANT OUTPUT LIKE what we use to report
APP_GROUP_ID IDENTIFIANT_COMPOSANT COMP_NAME EMAIL MAJ T1 T2 T3 T4
2037 2121 MARKETING [email protected] SHIFT-1 0 0 0 0
2037 2010 LOYALTY [email protected] SHIFT-1 0 0 0 0
2037 2009 COM [email protected] SHIFT-1 0 0 0 0
2037 2121 MARKETING [email protected] SHIFT-1 0 0 0 0
2037 2010 LOYALTY [email protected] SHIFT-1 0 0 0 0
2037 2009 COM [email protected] SHIFT-1 0 0 0 0
2037 2121 MARKETING [email protected] SHIFT-1 0 0 0 0
2037 2010 LOYALTY [email protected] SHIFT-1 0 0 0 0
2037 2009 COM [email protected] SHIFT-1 0 0 0 0
2037 2121 MARKETING [email protected] SHIFT-1 0 0 0 0
2037 2010 LOYALTY [email protected] SHIFT-1 0 0 0 0
2037 2009 COM [email protected] SHIFT-1 0 0 0 0
IE I want to every engineer to a list hierarchy to associate the component of a group of Applications [APP_GROUP_ID linked to a log-in user]
Help, please
Thank you
Hi, Subhash,
Subhash C-Oracle wrote:
Please please share your thoughts frank.
Let's say if we have a column called TAB_EMP_DATA, will INFLUENCE any way contribute to the achievement of my requirement?
Thank you very much
Subhash
That sounds right. A column in the table of tab_emp_data seems to be a logical place to record this information. To exclude managers of the final output, you would change the end of the main query, something like this:
...
CROSS JOIN tree_data td2
WHERE td2.emp_role NOT IN ("MANAGER")
ORDER IN...
I wouldn't say the ROLE column, because it is a keyword from Oracle, and it could cause problems; EMP_ROLE would be better.
Tags: Database
Similar Questions
-
Coordination of detail during the query mode
Forms 11g
I have a relationship of the master / detail, details of autoquery. the two blocks are displayed several records. I want to show a flag value (and the color attribute) next to the master if he got to the detail records.
To do this, I coded it in the post of the block in detail, because I wanted to avoid the questioning of the secondary table twice (one in the master post-requete and secondly in the population of retail block).
When running I run the query for the master, but the detail does not seem to be queried for all the record questioned captain. My tracking after request works only for the selected record of the master.
Is this normal? Is coordination suspended unless you are in NORMAL mode?
Yes, it comes to the features of normal forms. To highlight each master record based on if are detail records, you must query the table Details in the trigger of the Master post-requete.
You could simplify this by creating a database function that returns a TRUE/FALSE value rather than to perform a COUNT (*) SELECT your trigger after request. Then your trigger after query is simply:
BEGIN If ( YOUR_DB_FUNCTION = TRUE ) THEN Set_Item_Instance_Propety('YOUR_BLOCK',CURRENT_RECORD,PROPERTY,PROPERTY_VALUE); END IF; END;
Craig...
-
Details of SQL query in AWR report
Hello
In the AWR report, I found that there are a few SQL with full table scan queries
How drill us in this topic and find which table have full analysis
Yes with Explain plan we can do but is there another way in Oracle 11g
Please let me know
See you soonKnight wrote:
In the AWR report, I found that there are a few SQL with full table scan queries
How drill us in this topic and find which table have full analysisYes with Explain plan we can do but is there another way in Oracle 11g
Please let me knowWhat, exactly, you look in the AWR report allowing you to decide that some SQL statements are complete tablescans but, at the same time, don't show you the tables that are being analyzed?
If the statement is visible in the SQL "order by...» "sections of report then execution plans and workloed for education is also in the AWR. You can access either from Enterprise Manager, either by running the report $ORACLE_HOME/rdbms/admin/awrsqrpt.sql.
Concerning
Jonathan Lewis
http://jonathanlewis.WordPress.com
Author: core Oracle -
Dear all,
Is it possible to insert the ring into Table?
I have a Table whose values are constant, but not fixed, for example, Col 1 can be set to 1 or 2.
I am attaching the picture of the table to show clearly what I want.
Collar "Site" can have values On or OFF.
Nervous collar can have the values 1, 2 or 3.
Col. Ampl can have values from Ridge to Ridge or Bs - PK.
Is it possible to make a table to store multiple values for a cell?
Thank you
Ritesh
Hi Mickaël
This link will give you full details about your query. If it works let me know.
http://forums.lavag.org/table-with-drop-down-items-t11249.html
-
Hello
Does anyone know the tecniques of this version v2 of the material?
Thank you
Hi, sam_nirmal. Here are the details of your query.
-
How covert "asynchronous http" from c# to Java of BB
I'm trying to convert a code of .net compact framework Java of BB.
But the problem is that I can't find API on asynchronous http BB Java.
System.Net.HttpWebRequest . of the .net compact framework is the following method for asynchronos http.
- Public Overrides IAsyncResult BeginGetResponse(AsyncCallback callback, object state)
Anyone know which API of Java BB is compatible to the BeginGetResponse method ?
If this is not the case, how can I implement http asynchronous with BB Java?
Thank you
Sorry if I'm off base, but while the "asynchronous" term is used as part of these applications, I'm not sure they really are "asynchronous HTTP."
My understanding of this term, it's that it is used to differentiate traditional regular web application HTTP request/response cycles and the kind of real-time demand used by AJAX, etc. usually to perform updates without a complete request/response cycle. In both cases, an application is published, and a response is received unless there expire.
You build an application in webgame or a JavaME?
If JavaME for BB, you are in full control of thread and HTTP requests, you can create new threads and issuing HTTP requests as want you up to a certain limit of the device. In other words, you must write the logic of the "async" call yourself.
There are examples in the samples of the IDE directory. Order the browser folder com/rim/samples/device/BlackBerry and the HttpConnection API provides details on the query itself.
-
Cluase partition does not work
Version Oracle 10g
Hi gurus
I wonder what my is not partitioning against deptno, please see below for more details.
Query
Select * from scott.dept d partition by (d.deptno)
join left scott.emp e on d.deptno = e.deptno
-where d.deptno = 10
;
The query result
DEPTNO, DNAME, LOC, EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO_1
10 ACCOUNTS NEW YORK 7782 CLARK MANAGER 7839 2450 JUNE 9 81 10
10 ACCOUNTS NEW YORK 7839 KING PRESIDENT NOVEMBER 17, 81 5000 10
10 ACCOUNTS NEW YORK 7934 MILLER 7782 1300 23 JANUARY CLERK 82 10
20 RESEARCH DALLAS 7566 JONES MANAGER 7839 2975 2 APRIL 81 20
20 RESEARCH DALLAS FORD 7902 7566 3000 3 DECEMBER ANALYST 81 20
SEARCH DALLAS 20, 7876 ADAMS 7788 1100 23 MAY CLERK 87 20
SEARCH DALLAS 20 7369 SMITH 7902 17 DECEMBER CLERK 80 800 20
SEARCH DALLAS 20 7788 SCOTT ANALYST 7566 3000 APRIL 19, 87 20
30 SALES CHICAGO 7521 WARD 7698 1250 22 FEBRUARY SALESMAN 81 500 30
30 SALES CHICAGO 7844 TURNER 7698 08 - SEP - 81 1500 0 30 SALESMAN
30 SALES CHICAGO 7499 ALLEN 7698 1600 20 FEBRUARY SALESMAN 81 300 30
30 SALES CHICAGO 7900 7698 DECEMBER 3, CLERK JAMES 81 950 30
30 CHICAGO 7698 BLAKE SALES MANAGER 7839 2850 MAY 1, 81 30
30 SALES CHICAGO 7654 MARTIN 7698 28 - SEP - 81 1250 1400 30 SALESMAN
40 OPERATIONS BOSTON
It looks like my understanding about the partition by clause wrong, please correct me.
Concerning
MIT
Hi, Mit,.
Mitchels wrote:
Version Oracle 10g
Hi gurus
I wonder what my is not partitioning against deptno, please see below for more details.
Query
Select * from scott.dept d partition by (d.deptno)
join left scott.emp e on d.deptno = e.deptno
-where d.deptno = 10
;
The query result
DEPTNO, DNAME, LOC, EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO_1
10 ACCOUNTS NEW YORK 7782 CLARK MANAGER 7839 2450 JUNE 9 81 10
10 ACCOUNTS NEW YORK 7839 KING PRESIDENT NOVEMBER 17, 81 5000 10
10 ACCOUNTS NEW YORK 7934 MILLER 7782 1300 23 JANUARY CLERK 82 10
20 RESEARCH DALLAS 7566 JONES MANAGER 7839 2975 2 APRIL 81 20
20 RESEARCH DALLAS FORD 7902 7566 3000 3 DECEMBER ANALYST 81 20
SEARCH DALLAS 20, 7876 ADAMS 7788 1100 23 MAY CLERK 87 20
SEARCH DALLAS 20 7369 SMITH 7902 17 DECEMBER CLERK 80 800 20
SEARCH DALLAS 20 7788 SCOTT ANALYST 7566 3000 APRIL 19, 87 20
30 SALES CHICAGO 7521 WARD 7698 1250 22 FEBRUARY SALESMAN 81 500 30
30 SALES CHICAGO 7844 TURNER 7698 08 - SEP - 81 1500 0 30 SALESMAN
30 SALES CHICAGO 7499 ALLEN 7698 1600 20 FEBRUARY SALESMAN 81 300 30
30 SALES CHICAGO 7900 7698 DECEMBER 3, CLERK JAMES 81 950 30
30 CHICAGO 7698 BLAKE SALES MANAGER 7839 2850 MAY 1, 81 30
30 SALES CHICAGO 7654 MARTIN 7698 28 - SEP - 81 1250 1400 30 SALESMAN
40 OPERATIONS BOSTON
It looks like my understanding about the partition by clause wrong, please correct me.
Concerning
MIT
Sorry, I don't know what is your understanding, so I don't know if it's good or bad.
You might find the below request a better illustration of how works a partitioned outer join:
SELECT d.deptno, d.dname - a few columns, to reduce clutter
e.ename, e.job, e.empno
OF scott.dept d
LEFT JOIN scott.emp e PARTITION BY (e.job)
ON e.deptno = d.deptno
ORDER BY d.deptno
e.job, e.ename
;
Output:
DEPTNO DNAME EMPNO EMPLOYMENT ENAME
---------- -------------- ---------- --------- ----------
10 ANALYST ACCOUNTANT
10 ACCOUNTING CLERK 7934 MILLER
10 ACCOUNTING CLARK MANAGER 7782
10 ACCOUNTING PRESIDENT KING 7839
10 ACCOUNTING VENDOR
SEARCH 20 FORD ANALYST 7902
20 RESEARCH ANALYST SCOTT 7788
20 RESEARCH ADAMS CLERK 7876
SEARCH 20 SMITH CLERK 7369
20 JONES RESEARCH MANAGER 7566
PRESIDENT RESEARCH 20
20 RESEARCH SELLER
30 SALES ANALYST
30 SALES CLERK JAMES 7900
30 SALES MANAGER BLAKE 7698
30 SALE CHAIRMAN
30 SALES SALESMAN ALLEN 7499
30 SALES SALESMAN MARTIN 7654
30 SALE TURNER SELLER 7844
30 SALES SALESMAN WARD 7521
THE 40 OPERATIONS ANALYST
40 OPERATIONS CLERK
40 OPERATIONS MANAGER
40 OPERATIONS PRESIDENT
40 SELLER OPERATIONS
-
Purge the Job SCHEDULER$ _EVENT_LOG Tables
Hi Experts
Please I need your help with this issue:
Oracle Rac two nodes 11 GR 2
I have a Rac database somehow work tables: PLANNER$ _EVENT_LOG and PLANNER$ _JOB_RUN_DETAILS grow a lot.
When I run a query to view details MyJob, this query takes a long time to complete, due to the size of these tables, the automatic purge period a few hours to complete and it s not purge.
Now, I want to serve these tables and I ve done this:
run DBMS_SCHEDULER. SET_SCHEDULER_ATTRIBUTE('log_history','1');
BEGIN
() DBMS_SCHEDULER.purge_log
log_history = > 1,
which_log = > 'JOB_LOG ',.
job_name = > 'MYJOB');
END;
/
BEGIN
() DBMS_SCHEDULER.purge_log
log_history = > 1,
which_log = > 'WINDOW_LOG ',.
job_name = > 'MYJOB');
END;
/
BEGIN
DBMS_SCHEDULER. PURGE_LOG (log_history = > 1, which_log = > 'JOB_LOG');
END;
/
I am not able to serve these tables. We run chain job every night.
Any advice will be appreciated
Concerning
JUDGE
I fix the problem
It seems that the problem was the use of string information:
Rows in the table of newspaper work on the steps of a string are purged only when the entry for the work of the main chain is purged (manually or automatically).
Action:
Stop the task of the main chain
After that I was able to empty tables to work with DBMS_SCHEDULER.purge_log (no line on the tables), but the space used for each table was the same and requests delay again a lot of time.
So after that, I ran a Truncate on each table (PLANNER$ _EVENT_LOG and PLANNER$ _JOB_RUN_DETAILS), now everything seems fine. I get a lot of space and queries are fast.
Thank you for your time
-
9.1.8 vSM question
Important note! Important note: The answer given by Gytis solves the problem of the error that I get the licenses, but also is cancellations all the custom software that has been installed, it is a way to 'reset' of the default installation. Don't use it if you want to keep your custom software work! Hi all
I have a question about vSM 9.1.8. As we try to get our current version (9.0.10) updated I encountered a problem, this happens when I install a software custom made for our company. I can install most software customized without any problem, but thisone is introduced the installation of VSM. When I opened the package, I get the following error:
An application error has occurred.
Report this error to your administrator system with the following details.
Query 'GET all THE KEY LICENSE' does not exist
Type
Infra.Rules.InfraQueryNotFoundException
Source
Infra.Rules
Stack trace
at Infra.Rules.QueryCache.get_Item (String Name)
in Infra.Rules.QueryEngine'1.ExecuteSelectGeneric [ResultSet] (InfraSession Session, DBConnection 1 Con, String QueryName, IFieldCollection settings, settings of QuerySettings)
at Infra.Rules.InfraSystem.ExecuteSelectReader (InfraSession Session, String QueryName, IFieldCollection settings, settings of QueryExecSettings)
at Infra.Rules.InfraSession.ExecuteSelectReader (String QueryName, IFieldCollection settings)
at Infra.Rules.InfraSystem.PopulateLicensedModules (InfraSession Session, Boolean refresh)
at Infra.Rules.InfraSystem.get_LicensedModules (InfraSession Session, Boolean refresh)
to Infra.Rules.InfraSessionManager'1.CheckLicence (InfraSessionSystem WorkingSession, IFieldCollection VariantsOut, String UserID, Int32 PartitionRef, Int32 CorralRef, String ClientAddress, String ClientAgent, Int32 OfficerRef, LoginType LoginType)
to Infra.Rules.InfraSessionManager'1.Login (InfraSessionSystem WorkingSession, LoginType LoginType, Int32 OfficerRef, DataRow OfficerRow, String UserID, IFieldCollection VariantsIn, IFieldCollection VariantsOut, String LogonUser, String NTUserID, String NTDomainName, Boolean NTNoAuth, String ClientAddress, String ClientAgent, Source InfraSource)
to Infra.Rules.InfraSessionManager'1.Login (LoginType LoginType, IFieldCollection VariantsIn, InfraSessionSystem WorkingSession, IFieldCollection VariantsOut)
to Infra.Rules.InfraSessionManager'1.Login (LoginType LoginType, IFieldCollection VariantsIn, IFieldCollection VariantsOut, Source InfraSource)
at Infra.Rules.Login.ProcessPage (InfraApplication InfraApplication, IFieldCollection VariantsIn, IFieldCollection VariantsOut, InfraSystem & InfraSystem, InfraSession, and Session)
at Infra.Rules.ServiceDesk.GetPage (InfraApplication, String PageID, IFieldCollection VariantsIn, IFieldCollection VariantsOut InfraApplication)
More info
Display a Message: there is no query "To GET all THE LICENSE KEYS"
Code: 603
SQL:
ErrorOutput:
Name of the query: GET all THE LICENSE KEYS
I tried
-recylcl the application pool
-iisreset
-restart all services
-Reinstall the custom software
-Restart the application server-Enter all the license codes in the console of the server (for nothing)
-do a trace on the server of the suite (nothing came out)
-google search (not found maching results)
-a break from him to get the best ideas (failure)-a eaten food for energy (did not help)
I'm desperate for some great insights!
Hello
I think you can try these steps as well:
+ analyze the queries (from Server Console), then recycle the AppPool IIS VSM.
+ check if the system (Config/*.sql) queries are not ignored by your custom application. You can compare these files with the same files in... / Original/Config/*.sql. If you will find some differences, resolve any missmatch and repeat the first step.
-
Hello
Referring to of LucD 'orphan files and folders - Spring cleaning. "
http://www.lucd.info/2011/04/25/orphaned-files-and-folders-spring-cleaning/
Is it possible to also declare the size of the ophaned inside a folder an orphan data, I would like to get the "size" total data in an orphan file, only the "unfunded size' (length) if possible? If the total size of the data in a folder an orphan makes more difficult a list of each file/size would also work well.
I would use it purely for reporting for other people to action if the option delete is not necessary.
Thank you very much
Martin
If you only want the total size of the files in the folders that can be made.
Try this
function Remove-OrphanedData { <# .SYNOPSIS Remove orphaned folders and VMDK files.DESCRIPTION The function searches orphaned folders and VMDK files on one or more datastores and reports its findings. Optionally the function removes the orphaned folders and VMDK files.NOTES Author: Luc Dekens.PARAMETER Datastore One or more datastores. The default is to investigate all shared VMFS datastores.PARAMETER Delete A switch that indicates if you want to remove the folders and VMDK files.EXAMPLE PS> Remove-OrphanedData.EXAMPLE PS> Get-Datastore ds* | Remove-OrphanedData.EXAMPLE PS> Remove-OrphanedData -Datastore $ds -Delete#> [CmdletBinding()] param( [parameter(ValueFromPipeline=$true)] [PSObject[]]$Datastore, [switch]$Delete ) begin{ $fldList = @{} $hdList = @{} $fileMgr = Get-View FileManager } process{ if(!$Datastore){ $Datastore = Get-Datastore } foreach($ds in $Datastore){ if($ds.GetType().Name -eq "String"){ $ds = Get-Datastore -Name $ds } if($ds.Type -eq "VMFS" -and $ds.ExtensionData.Summary.MultipleHostAccess){ Get-VM -Datastore $ds | %{ $_.Extensiondata.LayoutEx.File | where{"diskDescriptor","diskExtent" -contains $_.Type} | %{ $fldList[$_.Name.Split('/')[0]] = $_.Name $hdList[$_.Name] = $_.Name } } Get-Template | where {$_.DatastoreIdList -contains $ds.Id} | %{ $_.Extensiondata.LayoutEx.File | where{"diskDescriptor","diskExtent" -contains $_.Type} | %{ $fldList[$_.Name.Split('/')[0]] = $_.Name $hdList[$_.Name] = $_.Name } } $dc = $ds.Datacenter.Extensiondata $flags = New-Object VMware.Vim.FileQueryFlags $flags.FileSize = $true $flags.FileType = $true $disk = New-Object VMware.Vim.VmDiskFileQuery $disk.details = New-Object VMware.Vim.VmDiskFileQueryFlags $disk.details.capacityKb = $true $disk.details.diskExtents = $true $disk.details.diskType = $true $disk.details.thin = $true $searchSpec = New-Object VMware.Vim.HostDatastoreBrowserSearchSpec $searchSpec.details = $flags $searchSpec.Query += $disk $searchSpec.sortFoldersFirst = $true $dsBrowser = Get-View $ds.ExtensionData.browser $rootPath = "[" + $ds.Name + "]" $searchResult = $dsBrowser.SearchDatastoreSubFolders($rootPath, $searchSpec) foreach($folder in $searchResult){ if($fldList.ContainsKey($folder.FolderPath.TrimEnd('/'))){ foreach ($file in $folder.File){ if(!$hdList.ContainsKey($folder.FolderPath + $file.Path)){ New-Object PSObject -Property @{ Folder = $folder.FolderPath Name = $file.Path Size = $file.FileSize CapacityKB = $file.CapacityKb Thin = $file.Thin Extents = [string]::Join(',',($file.DiskExtents | %{$_})) } if($Delete){ $dsBrowser.DeleteFile($folder.FolderPath + $file.Path) } } } } elseif($folder.File | where {"cos.vmdk","esxconsole.vmdk" -notcontains $_.Path}){ New-Object PSObject -Property @{ Folder = $folder.FolderPath Name = $null Size = &{ $dsName,$folderName = $Folder.FolderPath.Split(']') $dsName = $dsName.Trim('[ ') $folderName = $folderName.Trim(' ') New-PSDrive -Name DSTemp -PSProvider VimDatastore -Root "\" -Datastore (Get-Datastore -Name $dsName) | Out-Null Push-Location -Path "DSTemp:\$folderName" Get-ChildItem -Recurse | Measure-Object -Property Length -Sum | Select -ExpandProperty Sum Pop-Location Remove-PSDrive -Name DSTemp -Confirm:$false | Out-Null } CapacityKB = $null Thin = $null Extents = $null } if($Delete){ $fileMgr.DeleteDatastoreFile($folder.FolderPath,$dc.MoRef) } } } } } } } Remove-OrphanedData -Datastore MyDS
-
Download Adobe License Server Tools? I want to manage licenses using the internal server
This ticket , I'm able to download Adobe License Server Tools? I want to manage licenses using the internal server
Thank you.
Hi Carol,.
Please consult the guide for internal tool of license;
http://www.Adobe.com/UK/eLicensing/LicenseManagement/Alm/PDFs/server_tools_user_guide.PDF
Let us know if you need more details about your query.
Kind regards
Sarika Behal
-
can not recover the data in v$ sql
Hello Experts;
I have a doubt here. When you try to check the details of the analysis, I am facing problem.
that menas even I had three rows, but no details about the query verifying v$ sql.
Please see red marked below.
A written file afiedt.buf1 declare
v_display 2 varchar2 (30);
3 BEGIN
4: v_value: = 100000;
5 select name from v_display of tab1 where none =: v_value;
6 DBMS_OUTPUT. Put_line (v_display);
7: v_value: = 20000;
8 select name from v_display of tab1 where none =: v_value;
9 DBMS_OUTPUT. Put_line (v_display);
10: v_value: = 250000.
11 select name from v_display of tab1 where none =: v_value;
12 DBMS_OUTPUT. Put_line (v_display);
13 * END;
SQL > /.
****
****
****
SQL > select sql_id, plan_hash_value, parse_calls, executions, sql_text from v$ sql
2 where sql_text like ' select name in v_display of tab1 which no % ';
no selected line
Thank you
@ someoneElse
Thank you!
SQL > select sql_text, executions of v$ sql where lower (sql_text) like '% % tab1 ";
EXECUTIONS OF SQL_TEXT
----------
Select sql_text, executions of v$ sql where lower (sql_text) like '% % tab1' 1
-
How to display multiple values in the Email notification?
Hi all
I have a table in my page column, when I click on apply button changes, Notification email will be sent to the user with updated information.
In the notification email, I've included the text field, date field value, everything works fine and I can get by email with the details.
under select query that returns several value.i need to include these values in the notification e-mail.
Please suggest a solution.select distinct asset.NAME AA FROM ASSET_TBL asset join ENV_ASSET_MAP ENV ON ASSET.ID = ENV.ASSET_ID AND ENV.RESV_ID = :P24_ID
I tried the code below, but did not get any email!
Thank youdeclare l_body_html varchar2(4000); env_list apex_application_global.vc_arr2; i number:= 1; begin For enrow in (select distinct asset.NAME AA FROM ASSET_TBL asset join ENV_ASSET_MAP ENV ON ASSET.ID = ENV.ASSET_ID AND ENV.RESV_ID = :P24_ID) LOOP env_list(i):=enrow.AA ; i := i+1; end loop; return Apex_UTIL.TABLE_TO_STRING(env_list,':'); l_body_html := '<p><font size ="3" color = BLUE> <u> New Reservation Form</u></font> <br><br> <table> <tr><td> Selected Reservation : </td><td>'||env_list(i)||'</td></tr> </table><br><br> </p>'; apex_mail.send( p_to => '[email protected]', p_from =>'[email protected]', P_CC =>'[email protected]', P_BODY => l_body_html, P_BODY_HTML => l_body_html, p_subj => 'Notification Mail!'); wwv_flow_mail.push_queue(); EXCEPTION WHEN OTHERS THEN l_body_html := l_body_html || '. Error Occurred while sending email='||SQLERRM; apex_mail.send( p_to => '[email protected]', p_from => '[email protected]', P_CC => '[email protected]', P_BODY => l_body_html, P_BODY_HTML => l_body_html, p_subj => 'Notification Mail!'); wwv_flow_mail.push_queue(); end;
with respect,
Robette.Your process will end with the return on line 11 statement.
I think that instead of return you want to load a local variable you put int the body of the email. That is to say. See *.
declare l_body_html varchar2(4000); env_list apex_application_global.vc_arr2; i number:= 1; ******l_asset_name_list VARCHAR2(32767);* begin For enrow in (select distinct asset.NAME AA FROM ASSET_TBL asset join ENV_ASSET_MAP ENV ON ASSET.ID = ENV.ASSET_ID AND ENV.RESV_ID = :P24_ID) LOOP env_list(i):=enrow.AA ; i := i+1; end loop; *******l_asset_name_list :=* Apex_UTIL.TABLE_TO_STRING(env_list,':'); l_body_html := '
New Reservation Form
Selected Reservation : '||*******l_asset_name_list*||'
'; apex_mail.send( p_to => '[email protected]', p_from =>'[email protected]', P_CC =>'[email protected]', P_BODY => l_body_html, P_BODY_HTML => l_body_html, p_subj => 'Notification Mail!'); wwv_flow_mail.push_queue(); EXCEPTION WHEN OTHERS THEN l_body_html := l_body_html || '. Error Occurred while sending email='||SQLERRM; apex_mail.send( p_to => '[email protected]', p_from => '[email protected]', P_CC => '[email protected]', P_BODY => l_body_html, P_BODY_HTML => l_body_html, p_subj => 'Notification Mail!'); wwv_flow_mail.push_queue(); end;There may be other things to settle, these seem to be the main problem.
-
Hi friends,
I developed a new OFA page which will create a new request on successful presentation. The fields are displayed the final details of the application.
User has to click on Enter the request, and then enter the number of days and the amount. The page displays the details of the query entered previously should be show empty fields for the user to enter.
The AM has the following code to initialize the folder in VO
OAViewObjectImpl vo = getAdvSalVO1();
{if (!) {(VO.isPreparedForExecution ())}
vo.executeQuery ();
Line ro = vo.createRow ();
vo.insertRow (row);
row.setNewRowState (Row.STATUS_INITIALIZED);
}
I guess when the rowstatus has STATUS_INITIALIZED the empty fields must be created.
Can someone please.
Thank youYou added a blank line but does not have the line current. Move to the empty line and it should show the whites as you wish. Also in your code, you create a variable of the line called "ro" then refer to something different 'row', is it typo?
Replace this code:
OAViewObjectImpl vo = getAdvSalVO1();
{if (!) {(VO.isPreparedForExecution ())}
vo.executeQuery ();
Line ro = vo.createRow ();
vo.insertRow (ro);
ro.setNewRowState (Row.STATUS_INITIALIZED);
vo.setCurrentRow (ro); Sets the new line current online
}Kristofer Cruz
-
CF9 IIS 7.5 Application problem setting
I currently have a race CF 9.0 Enterprise Edition running on Windows 2003 Server R2 SP2 conversion CF 9.0.2 Enterprise edition running on Windows Server 2008 R2 SP1 with IIS 7.5.
I was able to correctly install and configure the cfadmin without problem.
My problem is now when I try and access my web application (which resides in the same directory as the cfide folder structure). I know this isn't a permissions issue - I wouldn't be able to get to the administrator.
I have my web application or custom code set up as an "application" as apposed to a virtual directory. When I try to access the application via the website, I get the following error:
And in IIS, under the app, I'll edit the application settings, basic, I try to "test settings" I get:
There was error during execution of this operation. Details: path is not a valid application.
I know that isn't true. And I know that the permissions are correct. I followed many instructions about the unsuccessful .net application pool settings.
I saw on one of the blogs that someone pointed out that you need a virtual directory under the application - which is something that was not required in previous versions. I was not able to confirm that no more.
I could return to the IIS 6.0 Manager, but I have to re - install (they have installed and made operational only for the SMTP server).
Any ideas? I spent about 20 hours of work only on this...
Thank you.
Libby H.
After searching for a long time, I found an article on how to get additional error information.
In IIS 7.5, you can get errors of detail for local query - errors that occur on the client side.
I went to my application directory in IIS and opens the selection of "Error Pages".
From there on, I chose the 500 error I need more information. I then click with the right button on the error (500) and choose "change the function parameters."
The pop-up, selected "detailed errors for local requests and for requests to remote customer error pages. I clicked OK, then stopped and restarted IIS.
When I then tried my request - I received detailed information!
Long story, but the point here is that the error I received while "test settings". -"Details: invalid application path."
-I think is a false positive. I have sent me on a wild goose chase. I had an application (no joke) error that was fixed easily and was on my way.
Maybe you are looking for
-
So my iPhone 6 is stuck in DFU mode and it will not come out. I tried all of the applications to the buttons. I had to take it to local shops than the so-called 'fix' but do not work. This * because it's my main phone to use. I don't have an Apple st
-
Can I use my charger Macbook W 29 with a USBC to lightning cable to recharge an iPhone 6 more?
Apple has launched a new cable USB C lightning. I have a Macbook with charger W 29, I was wondering if I can also use this charger with a USB C to the lightning cable to charge my iPhone 6 Plus, with no risk of damage to the battery of the iPhone. Is
-
datasocket read stop but shared variable can be updated
Hello I program with datasocket open/read, sometimes stops playing and after some time, maybe 10 seconds, it go on reading, I compare with variable shared (DSC) and found the shared variable can be updated, I don't know what happens to my program. (t
-
No sound from speakers - only work helmets
The speakers certainly work as I hear the rift of Windows to boot top. Once started, I can't get sound from headphoones. For about 4 months in this way. Was OK with it but my kids wanted to watch a movie together and I can't do it with 1 helmet.
-
HP 8500, unrelated, but some States PC and HP utility works well?
HP Officejet Pro 8500 Wireless, model A909g, paired with Windows 7 Pro N. Just changed the servers from Shaw to Telus. Tried to print. Solution Center HP said "no connection". Plugged power cord for PC, went to the Manager of devices and device 'c