Select * from TABLE (tst_name_pw.list);
Windows XP + 10.2.0.1.0 OracleI did tst_name_pw desc and show as below:
PROCEDURE Argument name default input/output Type
------------------------------ ------------------------------ ---------------------------------------------------------- --------- -------
(FUNCTION) < return value > TABLE LIST unknown
I have don see the table as tst_name_pw or the list name in the database.
Anyone it clarify it please?
Thank you
Hello
782150 wrote:
Windows XP + 10.2.0.1.0 OracleI did tst_name_pw desc and show as below:
PROCEDURE Argument name default input/output Type
------------------------------ ------------------------------ ---------------------------------------------------------- --------- -------
LIST (FUNCTION)TABLE OF strangers
I have don see the table as tst_name_pw or the list name in the database.
Anyone it clarify it please?
Thank you
It seems that tst_name_pw is a package, not a table.
Tags: Database
Similar Questions
-
Problem with "select * from table" for dynamic IN the list
I have a 'for loop' based a query that does not work. The query is supposed to return the name of the table, the data type and the name of the column in the columns poses a number of name filters. The problem I have is when I run the query into a TOAD with:
schema_list value SCOTT, MED and the clause of 'in' as ' to (select * from table (DATAPUMP_UTIL.in_list_varchar2 (:schema_list))))»
The query returns the expected lines.
When I have it in my code as shown below it returns no rows. I don't know what hurts me, but any help would be great! I'm on Oracle 11.1.0.6.0.
Published by: BluShadow on June 29, 2011 16:11PROCEDURE export_schema_ondemand (schema_list VARCHAR2, encrypt_file NUMBER default 0, mask_sensitive_data NUMBER default 0) IS ... schema_list_t := my_package.in_list_varchar2(schema_list); ... for c1 in ( with ok_to_mask as ( select owner, table_name, column_name from all_tab_columns where owner in (select * from table(schema_list_t)) minus (SELECT c.owner, p.table_name, cc.column_name FROM all_cons_columns cc, all_constraints p, all_constraints c WHERE c.owner in (select * from table(schema_list_t)) c.constraint_type = 'R' AND p.owner = c.r_owner AND p.constraint_name = c.r_constraint_name AND cc.owner = c.owner AND cc.constraint_name = c.constraint_name AND cc.table_name = c.table_name UNION ALL SELECT c.owner, cc.table_name, cc.column_name FROM all_cons_columns cc, all_constraints p, all_constraints c WHERE p.owner in (select * from table(schema_list_t)) AND p.constraint_type in ('P','U') AND c.r_owner = p.owner AND c.r_constraint_name = p.constraint_name AND c.constraint_type = 'R' AND cc.owner = c.owner AND cc.constraint_name = c.constraint_name AND cc.table_name = c.table_name)) select atc.table_name as mask_tab, atc.column_name as mask_col, atc.data_type as mask_type from all_tab_columns atc, ok_to_mask otm where atc.owner = otm.owner and atc.table_name = otm.table_name and atc.column_name = otm.column_name and atc.owner in (select * from table(schema_list_t)) and ( atc.column_name like '%LAST%NAME%' or atc.column_name like '%FIRST%NAME%' or atc.column_name like '%NAME_LAST%' or atc.column_name like '%NAME_FIRST%' or atc.column_name like '%ENAME%' or atc.column_name like '%SSN%' or atc.column_name like '%DOB%' or atc.column_name like '%BIRTH%' ) and atc.column_name not like '%PHYSICIAN_%' and atc.column_name not like '%DR_%' and atc.column_name not like '%PROVIDER_%' and atc.column_name not like 'PRESCRIBER_%' ) loop ... FUNCTION in_list_varchar2 (p_in_list IN VARCHAR2) RETURN VARCHAR2_TT is l_tab VARCHAR2_TT := VARCHAR2_TT(); l_text VARCHAR2(32767) := p_in_list || ','; l_idx NUMBER; BEGIN LOOP l_idx := INSTR(l_text, ','); EXIT WHEN NVL(l_idx, 0) = 0; l_tab.extend; l_tab(l_tab.last) := TRIM(SUBSTR(l_text, 1, l_idx - 1)); l_text := SUBSTR(l_text, l_idx + 1); END LOOP; RETURN l_tab; END in_list_varchar2;
addition of {noformat}{noformat} tags. PLEASE READ {message:id=9360002} TO LEARN TO DO THIS YOURSELF.
Hello
If you have a query that works well when you launch it directly, and that breaks down when you start with a procedure, this can be a problem of privileges.
Points of view ALL_ * shows only the objects you have access, but using a procedure, privileges must be granted directly to the user and not with a role.
You should check the SELECT privileges to your user through roles and give them directly to the user.
Hope this will help.
Sylvie
-
Insert into MDQ_OLD select * from table (lt_monitorMdq);
I'm trying to insert into a table that has only a single column, which is a column of a user defined type (UDT). The UDT is nested, that is one of the attributes of the UDT is an another UDT.
I aim to insert into the table like this pseudo-code:
INSERT INTO T1 SELECT * FROM THE UDT;
CREATE TABLE MDQ_OLD (myMDQ UDT_T_MONITOR_MDQ)
NESTED TABLE myMDQ
(T1_NEW) ACE STORE
THE NESTED TABLE MONITOR_MDQ_PRIM_RIGHTS
STORE AS T2_NEW);
The MONITOR_MDQ_CLI procedure. Read below returns the parameter lt_monitorMdq which is a UDT type as announced. The statement "insert into select MDQ_OLD * table (lt_monitorMdq);" fails, while the second insert statement works.
Is it possible to get the first statement of work?
I'm on Oracle 11 g 2.
DECLARE
lt_monitorMdq UDT_T_MONITOR_MDQ;
BEGIN
MONITOR_MDQ_CLI. Reading (TRUNC (SYSDATE),
TRUNC (SYSDATE),
NULL,
NULL,
"MILLION BTU.
lt_monitorMdq); -Note lt_monitorMdq is an OUT parameter
-This insert does not work
Insert into MDQ_OLD select * from table (lt_monitorMdq);
BECAUSE me in 1... lt_monitorMdq.count
LOOP
Dbms_output.put_line ('lt_monitorMdq: ' | .mdq_id lt_monitorMdq (i));
-This integration works
INSERT INTO MDQ_OLD (MYMDQ)
VALUES (UDT_T_MONITOR_MDQ (UDT_R_MONITOR_MDQ)
lt_monitorMdq (i) .gasday,
1,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
() UDT_T_MONITOR_MDQ_PRIM_RIGHT
() UDT_R_MONITOR_MDQ_PRIM_RIGHT
1,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
(NULL)));
END LOOP;
END;
have you tried:
INSERT INTO MDQ_OLD (myMDQ) VALUES (lt_MonditorMDq);
curiosity:
Is there a particular reason, why you have created a table with a single column of type UDT instead of:
CREATE TABLE... OF UDT_T_MONITOR_MDQ;
I can tell you from experience that using a nested table, you can easily query the data in the nested table.
MK
-
Very slow SELECT * FROM table
Hello
could you please help me, that's why execution of
Select * from myTable very slow (more than an hour and running)?
Table has 2 GB, BUT the use of the disc is only 5%!
When I execute select count (*) from myTable, usage is 100% and I have the result in 1 minute...
Thank you.Please see the nets [url http://forums.oracle.com/forums/thread.jspa?messageID=1812597#1812597] when your query takes too long... and [url http://forums.oracle.com/forums/thread.jspa?threadID=863295&tstart=0] HOW TO: post a request for tuning SQL statement - model of accounting. Maybe comment by Sybrand on accounting for the new trace files needs a qualification, as the work through the normal steps of setting before posting the raw trace.
I think you might have some misconceptions about the work of parallel processing how and what to KEEP. You can also consult the manual of Concepts on when things go in the PGA, and when they go into the CMS and find out how to see the use of the PGA. If you try to load the buffers of the SGA by making a parallel with full table scan, it won't, because this combination uses your PGA and multiblock reads to increase performance - negative in some cases, such as yours.
In other words, you're [url http://www.doingitwrong.com/wrong/585_munkavedelem.jpg] made wrong.
-
Insert into select * from table 3. -is on the agenda by the needless?
I've got an example of script, it will work for any table, so I don't bother with the full ddl.
----------------------------------------------------------------------------
create table test in select * from hotels where 1 = 2;
Insert into test select * from Hotels by city;
Select the city from the trial;
-drop table test is serving;
-----------------------------------------------------------------------------
The amazing thing is, that the city is ordered alphabetically,
but you would say it is that an operation order is irrelevant.
Any ideas on that?
This will still work?
Edited by: FourEyes on December 8, 2008 22:55
Edited by: FourEyes on 8 December 2008 22:56
Edited by: FourEyes on 8 December 2008 22:56Hello
The [SQL Oracle 10 language reference | http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9014.htm#sthref9371] manual says:
«In regards to the ORDER BY clause from the subquery in the DML_table_expression_clause, you place your order is guaranteed only for the inserted rows and only within each extension table.» Orders new lines with regard to existing lines is not guaranteed. »
-
do a select from table using order by ASC and recover only a range
Hello
I have a problem in my program and I want to know the line which is the cause in order to correct the code!
-There is a line between 19500 and 19600 lines that gives me an error.
-my program made a NLSSORT (my_field, ' nls_sort = binary "") AS "KEY1".
so I think that if I do something like that, I get the same order:
Select * from my_table
order my CSA my_field
where the rank number bettween 19500 and 19600
My problem:
I have no idea how to do this last part. does anyone know how to do this?
I was just trying to sort it out and then check out lines up to 19600, but I can't do that because there is no enough space in temp score.
Thank you.
Best regards
Ricardo Tomasselect col1, col2, col3... from (select my_table.*, rownum rn from (select * from my_table order by my_field asc ) my_table ) where rn between 19500 and 19600
Note: you must order in a subselect before applying the rownum because the order is usually applied after the right column in a statement pseudo-device select rownum.
-
Selections from drop-down list in the text box is not saved when PDF is saved/sent
I have a drop-down selection list and items can be added from the drop-down list in a textbox as multiple items. (this work all fine)
When I send the form as a PDF and then all the other field values is saved, except the values entered into the text selected in the dropdownlist control box.
How can I get these values to be saved in the PDF file so that these values disappear.
Thank you so much for everything tips to get this working so that when the form is sent by e-mail the selected values go with the form
.. run only in the file > Properties > tab by default , that the changes of Script preserve is set to Automatic.
Niall
-
What savings attached to an e-mail is no longer select from a whole list of Favorites Finder
before the upgrade to El Capitan, could choose one of the options to save the location displayed in the mail, then before you click on save, return to the drop-down selection list and all folders in my Finder Favorites would be available as a backup location. now don't get the choice of my hard drive or a random location like desktop, Documents, or music. y at - it a setting that I have not found?
It sounds like you see the Tablet/simplified record dialog box. Just click on the triangle next to the file name field to expand the dialog box to display the full tree.
-
Having trouble selecting from a table function
Need a function to return an array in the following format:
The following error after the selection of a function that returns the table:WEEK_NBR START_DATE END_DATE ---------------------- ---------- --------- 0 29-JAN-09 25-NOV-09 1 26-NOV-09 02-DEC-09 2 03-DEC-09 09-DEC-09 3 10-DEC-09 16-DEC-09 6 26-NOV-09 16-DEC-09 7 29-JAN-09 16-DEC-09
Error from the 1 in the command line:select * from table(get_cwsr_ranges)
Select * from table (get_cwsr_ranges)
Error report:
SQL error: ORA-06504: PL/SQL: return variables of the game results or the query types do not match
ORA-06512: at "GET_CWSR_RANGES", line 23
06504 00000 - "PL/SQL: return of the variable result set or query types do not match.
* Cause: Numbers or types of columns in a query is not declared
return type of a variable result is defined or declared two result types
Set of variables do not match.
* Action: Change the program or the declaration statement. Verify that the query variable
actually we want during execution.
>
DDL:
Any suggestions?CREATE TYPE typ_date_range AS OBJECT (week_nbr number, start_date date, end_date date ); / CREATE TYPE typ_tbl_date_ranges AS TABLE OF typ_date_range; / CREATE OR REPLACE FUNCTION get_cwsr_ranges() RETURN typ_tbl_date_ranges PIPELINED IS v_dates_table typ_tbl_date_ranges; p_cursor sys_refcursor; rec typ_date_range := typ_date_range(NULL,NULL,NULL); BEGIN open p_cursor for with sample_data as ( select 0 as week_nbr , '29-JAN-09' as start_date , '25-NOV-09' as end_date from dual union all select 1 as week_nbr , '26-NOV-09' as start_date , '02-DEC-09' as end_date from dual union all select 2 as week_nbr , '03-DEC-09' as start_date , '09-DEC-09' as end_date from dual union all select 3 as week_nbr , '10-DEC-09' as start_date , '16-DEC-09' as end_date from dual union all select 6 as week_nbr , '26-NOV-09' as start_date , '16-DEC-09' as end_date from dual union all select 7 as week_nbr , '29-JAN-09' as start_date , '16-DEC-09' as end_date from dual ) select * from sample_data; LOOP FETCH p_cursor INTO rec; EXIT WHEN p_cursor%NOTFOUND; PIPE ROW(Rec); END LOOP; CLOSE p_cursor; RETURN; END get_CWSR_Ranges;
create or replace FUNCTION get_cwsr_ranges RETURN typ_tbl_date_ranges PIPELINED IS BEGIN for rec in ( with sample_data as ( select 0 as week_nbr , to_date('29-JAN-09', 'dd-mon-yy') as start_date , to_date('25-NOV-09', 'dd-mon-yy') as end_date from dual union all select 1 as week_nbr , to_date('26-NOV-09', 'dd-mon-yy') as start_date , to_date('02-DEC-09', 'dd-mon-yy') as end_date from dual union all select 2 as week_nbr , to_date('03-DEC-09', 'dd-mon-yy') as start_date , to_date('09-DEC-09', 'dd-mon-yy') as end_date from dual union all select 3 as week_nbr , to_date('10-DEC-09', 'dd-mon-yy') as start_date , to_date('16-DEC-09', 'dd-mon-yy') as end_date from dual union all select 6 as week_nbr , to_date('26-NOV-09', 'dd-mon-yy') as start_date , to_date('16-DEC-09', 'dd-mon-yy') as end_date from dual union all select 7 as week_nbr , to_date('29-JAN-09', 'dd-mon-yy') as start_date , to_date('16-DEC-09', 'dd-mon-yy') as end_date from dual ) select typ_date_range(week_nbr, start_date, end_date) the_type from sample_data ) loop pipe row (rec.the_type); end loop; END get_CWSR_Ranges;
and then...
select * from table(cast(get_cwsr_ranges as typ_tbl_date_ranges))
Published by: Tubby on December 26, 2009 19:05
Remove the implicit conversion using explicit TO_DATE... you should always do :)
-
Users do not select as long multi lists
Users hate long multi selection lists so I will try to find a simple solution to keep them happy. My users would rather type in a free text field that scroll a long list. I tried without success to use two solutions, I found posted on the web site of Dene Kubickek ApEx Solutions.
The first is "how to use tables V said. It looks like a great solution, but I can't understand how to implement it on a form. The example uses a SQL report. I would like my users to type comma-delimited names in a text box then onblur and onclick calls a function to validate the names that they typed in. I also intend using a contextual list they can use as a reference to check the spelling of the name of someones or possibly copy and paste from. I have seen the example on how to create a custom box pop up, but I can't understand how to use for multiselects. And yet once my users may not like having to select from a long list. I don't think I need a pop-up list of names in both cases be available as a reference.
The alternative which would be really slick is the use of "AJAX Auto Complete". Yet once the example is not configured to manage several items typed in the box. In my case, that would be the commas to names like Bob Smith, Jane Jackson, Jack Black. I would like to use this solution. Is it possible to modify the code to manage several items?
Thank you very much this forum, he saved me more than once. Elizabeth
One last thing, I really like how the popular tags on the bottom of this page to work. Is there a post of this code anywhere?Hello
For AutoComplete, take a look at this thread-
(there are quite a few other threads discuss Autocomplete here too).
Regarding labelling, look at Carl Backstroms sample application here-
http://Apex.Oracle.com/pls/OTN/f?p=11933:136
Hope this helps,
John.
--------------------------------------------
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd -
Syntax of GRANT: grant SELECT on table privileges to a user on a remote database
Hello
I have two databases: DEV1 and DEV2. Dev1 is my source database and DEV2 is the target database. There is a table in the diagram A on Dev1. I created a DBLINK PUBLIC 'TESTDBLINK' in the diagram B on DEV2 that connects to figure A on DEV1.
Machine of Table for the database schema
DEV1 AN EMP 192.168.210.10
Database Machine Lik database schema
DEV2 B TESTDBLINK 192.168.210.11
How to SELECT on the schema Table EMP (DEV1) diagram b the DEV2 privileges? What is the syntax?
Sign up for example in the form of scheme A on DEV 1
SQL > GRANT SELECT ON EMP to? * *
Thanks for your contributions
HarryDo not give this table in diagram A diagram B.
Inside the diagram B, you can just issue a select statement as follows:
select * from table@db-link-to-A
Oracle connects to the remote instance by using the credentials of the scheme A, and since A is the owner of this table, Oracle can already access the table.
-
By selecting the table with UDT columns
Hello!
I have:
How can I select from table j_table to the output as:create type j_t as object ( num number, str varchar2(10) ); create table j_table ( ident number, j j_t ); insert into j_table (ident, j) values (1, j_t(1, 'one'));
ident num str ----- --- --- 1 1 one
Is there something similar to ' SELECT * FROM ' for use with objects?
You can create an additional array type, for example j_t_tab:
SQL> create type j_t as object ( num number, str varchar2(10) ) / Type created. SQL> create type j_t_tab as table of j_t / Type created. SQL> create table j_table ( ident number, j j_t ) / Table created. SQL> insert into j_table (ident, j) values (1, j_t(1, 'one')) / 1 row created. SQL> select ident, t.* from j_table j, table(j_t_tab(j)) t / IDENT NUM STR ---------- ---------- --------------- 1 1 one 1 row selected.
?
-
How to create a report based on the item selected from the list of selection?
Hello
I created a tables_LOV based on:
Select table_name table_name user_tab_cols r, d
where column_name like '% _type % '.
Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.
I run the page, and I can choose the table I want in the drop-down list.
How to create a report based on the selected element? (ex: select * from selected_table)
Thanks in advance
Salah
Hi Salah,
Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report
I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.
The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION
To recreate my example, you should:
(1) create a report (interactive) on your collection
SELECT * FROM APEX_collections WHERE collection_name = 'MY_COLLECTION'
(2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")
(3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:
declare l_query varchar2(4000); begin l_query := 'select * from '||:P38_TABLES; if apex_collection.collection_exists ( p_collection_name => 'MY_COLLECTION' ) then apex_collection.delete_collection ( p_collection_name => 'MY_COLLECTION' ); end if; apex_collection.create_collection_from_query ( p_collection_name => 'MY_COLLECTION' , p_query => l_query ); end;
Make sure that you add your page_item 'Page to send items' section.
(4) add a real extra action that makes an update of the report area.
Here are two photos describing the da:
http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG
http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG
Good luck and greetings,
Vincent
-
Hello world
Hope all is well,
In a previous thread.
West of stem has provided the name of the discoverer table which contains the reports:
EUL5_Documents.
I went to Oracle Developer just to run a select statement on this table.
(We use discoverer out of an ODS - data warehouse - like repository)
So in Oracle developer, I signed in ODS and typed:
Select * from EUL5_documents
I typed EUL5_ a drop-down list of tables appear, so I chose EUL5_documents
I get an error msg when I run the table is not found...
All advice would be appreciated, tx, sandraHi, Sandra
You are probably using the SunGard ODS?If so, you must open a session as long as the owner of the EUL is not the owner of the ODS. In many cases, this account is ODSDISCO.
You can tell by logging in to the administration tool. Any account that you use to connect there is one that you can use to query the underlying tables. EUL5_DOCUMENTS is definitely one you want to watch.
Best wishes
Michael -
The best flexibility might always have the ability to add individual addresses from a group list to any email, so the list can then be cut. Or only the address list in the list group selected as a list of checkboxes (all checked by default) if the user can deselect those who should not be included in the list of email recipients. THX
Maybe you are looking for
-
Satellite L550 - 1 8: icons disappeared from the Office
Hello.Satellite my husband suddenly erased while he was using it. When the screen came back, all the "shortcuts" to programs had disappeared. The screen is white gray with the brand Toshiba passes through the middle of the screen. How do we get back
-
Tecra A8 PTA83E - installation of package of added value
Tosiba Tecra A8 PTA83EMicrosoft Windows Vista Ultimate X 64 I was unable to install the Toshiba Value added package (vap-vista-1011btn-en) or any version before it. I talked to technical support Tosh for many times and they always promise of customer
-
How can I change the date of 1970 until 2015, because I can't reboot my iphone!
I can't reboot my iphone, after when I changed the date from 02.12. 2016 to January 1, 1970. How can I restart my iphone? Can I repair my iphone?
-
Abandonment of a defragmentation process?
Contrary to defragment my HD, it hurt my computer if I stop the process? How many times I have to defragment?
-
How can I register visual studio
When I try to start the Visual Studio 2010 Express program, I get a box of registration. When I choose to go online to get a number, I sign into the Microsoft site, then all I get is a circle of rotation.