By using the query table data pump
I am trying to perform an export of data pump on a table by using a query in a parfile and I'm getting a strange behavior. The database version is 10.2.0.4.3 and the AIX 5.3 operating system. The query looks like this.QUERY = "POSDECLARATIONQUEUE:where SESSIONID in (select"B.SESSIONID"from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C, where"B.SESSIONID"="C.ID"and"C.ACCOUNTID"= 'A.ID' and 'Inform' = '10252')" "
This works, but gets 0 rows. If I run the query against the instance in a session of SQLPlus as below then I get 0 rows returned.
Select * from POSDECLARATIONQUEUE where SESSIONID in (select "B.SESSIONID" from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C, where "B.SESSIONID" = "C.ID" AND "C.ACCOUNTID" = 'A.ID' and 'Inform' = '10252');
If I take the columns all about apostrophes in the query on the Forum with SQLPlus, I get over 2000 rows returned.
SQL > select count (*) in the POSDECLARATIONQUEUE where SESSIONID in (select B.SESSIONID from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C where B.SESSIONID = C.ID and C.ACCOUNTID = A.ID and inform = 10252);
COUNT (*)
----------
2098
If I remove the apostrophes in the query parfile then I get the following error in data pump export.
DEU-00014: invalid value for the parameter, "schemas".
The PATTERNS option is not specified in parfile him and the TABLES option specifies that the table POSDECLARATIONQUEUE.
Can someone help with this, I can't seem to be able to get the syntax just to work within data pump.
Kind regards.
Graeme.
Published by: user12219844 on April 14, 2010 03:34
It seems that your query can be a little wrong:
That's what you have:
QUERY = "POSDECLARATIONQUEUE:where SESSIONID in (select"B.SESSIONID"from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C, where"B.SESSIONID"="C.ID"and"C.ACCOUNTID"= 'A.ID' and 'Inform' = '10252')" "
That's what I would have thought it should look like:
QUERY = POSDECLARATIONQUEUE: "where SESSIONID in (select B.SESSIONID from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C where B.SESSIONID = C.ID and C.ACCOUNTID = A.ID and inform = 10252).
You want to double "around the full query and you have not need single ' around all =." The single ' treat these values as strings and he said
"B.SESSIONID" = "C.ID".
the B.SESSIONID string is the string C.ID
In your query you used in sql has been
B.SESSIONID = C.ID
that said, it is that the B.SESSIONID stored value equal to the value stored at C.ID
Which is what you want.
Dean
Tags: Database
Similar Questions
-
Inserting data by using the query
Hello
In a book, I read the Sub statement:
Inserting data by using the query (DML)
If the user wants to transfer data from a table to another table in the insert statement are used independently of data that can be processed or not processed form.
Can someone clarify what is the significance of this (processed or unprocessed form).
Thank you.
Why don't you ask the author of the book.
How can we know what the author means when you take a quote out of context and don't provide any reference so that we can see exactly what is shown to you.
I can only imagine that they are referring to data that are queried directly, "like what", another table, or who was interrogated and manipulated before be inserted.
-
Using the QUERY parameter in exp/expdp
Hi, I've faced a nite last question.
IM currently using Oracle 10 g (10.2.0.4) OS - MS Windows Server 2003
I want a dump of tables to export multiple schemas. say (acb.m1, pqr.b2, xyz.b1)
Each table has a minimum lines of 2,000,000,
And I want to just the initials 10 rows in each table of export
Is it possible that I can do this...
Please answer.
Thanks in advanceExport tables in multiple schemas is not supported in Data Pump until 11.1.0.7. So if you're on 10g, you will need to run multiple commands expdp. For only 10 lines of each table, use the query parameter
Query = "where rownum"<>
This will apply to all the tables you export.
I hope this helps.
Dean
Published by: Dean WINS January 30, 2012 08:42
-
IMPDP | Possible using the query option
HI PPL,
I wanted to know if IMPDP is possible by using the query option, as I took full expdp dump of the mentioned table and want to import only select lines.
Impdp arup/arup directory = demo_dir dumpfile = employees.dmp
Query = employees:------"" where salary\ > 10000\ order of salary "tables used ="
version: 10 gr 2
platform: UNIX
concerningObviously, it will be slow if you are using the query option, because IMPDP must import only the data that meets the criteria; It of why we export only limited data (one or two tables as needed) and import them completely.
Concerning
Girish Sharma -
Problem in the export using the QUERY functionality
Problem in the export using the QUERY functionality
I'm trying to export some rows in a table using the query functionality
and I have some errors... I'm using the syntax is
system@orcl QUERY = scott.emp expdp: '"WHERE emp_no = 123455" '
DIRECTORY = data_pump_dir DUMPFILE = data_pump.dmp
LOGFILE = data_pump_12345.log INDEX = n
Can someone tell me please the problem with that statement
I also tried to use the simple export
exp file system@orcl = orcl_export.dmp log = orcl_export.log
tables = Scott.EMP index = QUERY = n------"WHERE emp_no\ = 123455\"
and this error
EXP-00008: ORACLE error 904
ORA-00904: identify invalid
My os is Solaris
Please let me know what the problemHello
Try to create parfile and use that, otherwise, you will need to escape each clause correctly to run exp or expdp successfully.
test.par
tables=emp query="WHERE emp_no=123455" or tables=myobjects query="WHERE owner='SYS'" $> exp username/password parfile=test.par Export: Release 10.2.0.1.0 - Production on Thu Mar 19 10:17:48 2009 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining Scoring Engine options Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set About to export specified tables via Conventional Path ... . . exporting table MYOBJECTS 22650 rows exported Export terminated successfully without warnings.
Concerning
Published by: OrionNet on March 19, 2009 10:21
-
Using the external table error
Hi all
This is the first time I use the external table for loading the data.
I did these steps
In the D:\sqlloade folder, I have my text file containing data example.txt
I ran these queries
CREATE OR REPLACE DIRECTORY ext_tab_data AS 'D:\sqlloader';
Directory created
CREATE TABLE fxops.t_ext ( t number ) ORGANIZATION EXTERNAL ( TYPE ORACLE_LOADER DEFAULT DIRECTORY ext_tab_data ACCESS PARAMETERS ( RECORDS DELIMITED BY NEWLINE FIELDS TERMINATED BY ',' MISSING FIELD VALUES ARE NULL ( t number ) ) LOCATION ('sample.txt') ) PARALLEL 5 REJECT LIMIT UNLIMITED;
create table
When I tried to create a view on that table, he throws an error
CREATE OR REPLACE VIEW fxops.t_view AS SELECT * FROM fxops.t_ext; SQL Error: ORA-06564: object EXT_TAB_DATA does not exist 06564. 00000 - "object %s does not exist" *Cause: The named object could not be found. Either it does not exist or you do not have permission to access it. *Action: Create the object or get permission to access it.
Sign in, and then run this:
Select HOST_NAME from v$ instance;
is this the same hostname that you are connected?
Kind regards
Harry
-
Not able to change the password by using the query.
Select APPS.fnd_web_sec.change_password ('username', 'password') 'RES' double;
Can someone tell why and what privileges and subsidies have flexibility to the user non-apps while it can change the password using fnd_web_sec.change_password.
Concerningthe information above does not solve my problem, I get the message
Because you do not have permission on all objects that are referenced by the API (see below).
Select FND_WEB_SEC. CHANGE_PASSWORD ('MARSHAD', 'mohammad @123') "RES" of the double
*
ERROR on line 1:
ORA-00942: table or view does not exist
ORA-06512: at the 'APPS '. FND_CORE_LOG', line 25
ORA-06512: at the 'APPS '. FND_CORE_LOG', line 432
ORA-06512: at the 'APPS '. FND_PROFILE', line 110
ORA-06512: at the 'APPS '. FND_SSO_MANAGER", line 227
ORA-06512: at the 'APPS '. FND_WEB_SEC', line 1425
ORA-06512: at line 1...
can you please list me what are the grants and other Jules Destrooper I should give to a user so that he can change password.
I don't have the list of objects and you should get yourself by consulting the site code and eTRM API.
by changing the DDT in the user non-apps after the grant, will, it may be able to change the password.please tell this syntax is correct or not.
Select applications. FND_WEB_SEC. CHANGE_PASSWORD ('user', 'pwd') "RES" of the doubleWhat is the point of using 'FND_WEB_SEC. CHANGE_PASSWORD' and not FNDCPASS or FND_USER_PKG API?
Thank you
Hussein -
DataPump import by using the query
Hello
I need to import data by filtering using the query. can anyone help?
Thank youHello
example ofexpdp HR/hr = emp QUERY:'"WHERE dept_id > 10 AND sal > 10000"' NOLOGFILE = y DIRECTORY = dpump_dir1 DUMPFILE = exp1.dmp
Impdp HR/hr DIRECTORY = dpump_dir1 DUMPFILE = expfull.dmp QUERY = departments:'WHERE department_id «»< 120"'="" nologfile="">
See this link
http://download.Oracle.com/docs/CD/B13789_01/server.101/b10825/dp_import.htm
-
Need to dimension aggregated using the summary tables
Hello
I have two made tables workdetail and worksummary. Worksummary is grouped in time Sun and workdetail is at the level of day Timedim.
Now, I set up my business model with Timedim and secondary table work. (creates a hirerchy for time (year-month-day) Sun). Now I want to use the tables of worksummary, how can I include this in my business model. I know to create a new Source of logic and mentioning levels.
My important question is what do I have to create another physical table for time-months? or can I use same calendar dim physical to use with the summary fact tables?the answer to your question is YES, to use aggregated summary tables, we have grouped the dimensions. Other wise data will be redundant and return values incosistent.
In your case if you use the same table of Timedim-day level with summaries, data tables will be multiplied by 30 days due to the time-Sun monthkey will be repeated in several lines.
the simplest solution is to create Time_Dim table view, select separate year, month, monthkey. This view returns only unique year-month. Thus, each month will have only one line.
-> view to import in your physical layer and create a join with the fact summary table.
-> The table of months (which is the point of view) in the logic time_dim as another source, mention levels.
-> and include your table of facts in logical fact table and mention that the levels at months time SunIt will work. Let me know if I'm not clear. Also, we can expect further comments of experts.
-Madan
-
the search for empty cells by using the query designer
Hello
I'm trying to exclude empty cells in a field (by using the Query Builder), and I did:
xDocumentSource < match > "CDL".
< AND >
< NOT > (xRelatedMsgid < match > "" "")
but it does not work. I tried "NULL", but it does not work either. Could someone tell me how to do it (or where I can find examples of queries).
Kind regards
Iwona
https://blogs.Oracle.com/Kyle/entry/searching_for_null_values_ucm
-
List of virtual machines in TIME using the query service
Someone been able to use the query service to produce a range of virtual machines in a paralytic? I don't see all the attributes on the VclQueryadminVMField that reference the vApp.
I log in the org of system.
Any help would be appreciated.
Name of the action: getVAppVms
Entry: VAPP (vCloud:VApp)
Output: Array / vCloud:VM
Script:
var vcdHost = vApp.getHost(); var vms = new Array(); var queryService = vcdHost.getQueryService(); expression = new VclExpression(VclQueryVMField.CONTAINER, vApp.getReference().href, VclExpressionType.EQUALS); filter = new VclFilter(expression); params = new VclQueryParams(); params.setFilter(filter); var resultSet = queryService.queryRecords(VclQueryRecordType.VM, params); while (resultSet != null) { var records = resultSet.getRecords(new VclQueryResultVMRecord()); System.log(records.length + " VM records found"); for each (var record in records) { var vmRef = new VclReference(); vmRef.href = record.href; vmRef.name = record.name; vmRef.type = record.type; vms.push(vcdHost.getEntityByReference(VclEntityType.VM, vmRef)); } resultSet = resultSet.getNextPage(); } return vms;
This is what made our team (more precisely - Christophe)
-
Use the project start Date and duration to calculate the end Date of project
I'm trying to calculate the end date of the project in a report using the project end Date and time entered on the opportunity.
For example, if the start date of the project filled an opportunity is 31/01/2009 and the length (integer) is entered on the opportunity is 5, the project end date is in the report must be 30/06/2009.
I'm trying to TIMESTAMPADD forumaul allows you to add the duration (number of months) to the project start date
This Fx works TIMESTAMPADD (SQL_TSI_MONTH, 12, '-used Custom Attributes ".) DATE_40)
But if I try to replace the number twelve by the length (integer field) I get an error when you try to save: TIMESTAMPADD (SQL_TSI_MONTH, "-opportunity Custom Metrics".) S_INT_0, '-used custom attributes. DATE_40)
Any ideas on how I can get this to work would be greatly appreciated.Hi, try this. It might solve your prioblem TIMESTAMPADD (SQL_TSI_MONTH, CAST (YOUR FIELD AS INTEGER), account. (' "Last modified")
-John CRMIT
-
Failed to create the Data Source by using the pivot table query
Hi people.
Running Oracle BI Publisher 11.1.1.6.0
He complains with ORA-01738: lack of KEYWORD
When I try and a SQL query in function by using the data set:
SELECT *.
FROM (SELECT ist.descr |) ' '|| EIT. Descr service_type, ROUND (sum (milf.ttl_number_units)) ttl_number_units
Of mv_iot_line_item_forecasting mllf
Ope on ope.master_entity_id = milf.partner_master_entity_id JOIN operator
JOIN iot_service_type on ist.iot_service_type_id = milf.iot_service_type_id ist
JOIN iot_event_type on iet.iot_event_type_id = milf.iot_event_type_id EIT
WHERE milf.iot_agreement_id = 2621
AND milf.traffic_direction = 'CR '.
AND ope.operator_type_id = pkg_ngc_constants.operator_type_id_gsm
Ope.main_reference GROUP, ist.descr | ' '|| EIT. Descr)
PIVOT (sum (ttl_number_units) FOR service_type IN ("Voice MO' like' voice', 'MT voice' as 'voice MT", "SMS MO" as "SMS MO", "SMS MT" as "SMS MT", "MB of data" as "MB of data"))
order by 1
No idea why it won't let me create?
The query runs perfectly fine in SQL.
Any input appreciated.
SimonCan you try to change your "IN" clause to this and see if it works?
service_type IN ("voice MO' as Voice_MO, 'Voice MT" as Voice_MT, "SMS MO" as SMS_MO, "SMS MT" SMS_MT, 'MB of data' as Data_MB)
Thank you
Bipuser
Published by: BIPuser on October 18, 2012 07:40Published by: BIPuser on October 18, 2012 07:41
-
How can I use the export of data to external customers pump?
I'm trying to export a bunch of table from a database, but I can't understand how do.
I do not have access to a terminal shell on the server itself, I can only connect using TOAD.
I am using Data Pump Export utility of TOAD, but I get this error message:
ORA-39070: unable to open the log file.
ORA-39087: directory D:\TEMP\ name is invalid
I don't understand if its because I put the incorrect setting file or if the utility is trying to find this directory on the server while I think its going to my local file system where this directory exists.
I'd hate to use SQL Loader to create ctl for each table files...
Here are my parameter file:
DUMPFILE = "db_export.dmp"
LOGFILE = "exp_db_export.log"
DIRECTORY = "D:\temp\".
TABLES = ACCOUNT
CONTENT = ALL
(just trying to test it on a table so far...)
PS Oracle 11g
Published by: trant January 13, 2012 07:58ORA-39070: unable to open the log file.
ORA-39087: directory D:\TEMP\ name is invalidDirectory here, it is not the physical location, it is a logical representation.
For this you must create a directory of SQL level, like create directory exp_dp...then you must use above created directory DIRECTORY = exp_dp
HTH
-
EXPORT ONLY THE TABLES IN A DIAGRAM WITH THE HELP OF DATA PUMP
Hi people,
Nice day. I'd appreciate if I can get a data pump command to export the TABLE object in a specific schematic.
The server is a node RAC 4 with 16 CPU per node.
Thanks in advanceIf all you want is table definitions, why can use you something like:
expdp username/password = mon_repertoire dumfile = my_dump.dmp direcory tables schama1.table1, schema1.table2, happy etc = metadata_only = include = table
This will only export table definitions. If you want the data, and then delete the content = metadata_only, if you want the dependent objects, such as indexes, table_statistics, etc, then remove the include = table.
Dean
Maybe you are looking for
-
-have the most recent version 20.0.1-He paused downloads when I close the browser window-can not restart downloads on sites like rapidgator, ryushare etc.-keep cancel my pron downloads by accident-very annoying-How/where can I set the value of browse
-
could I replace my (work) iphone 6plus iPhone 6 sec more
could trade my (work) iphone with iphone 6s 6plus more?
-
Pphotosmart 7520: Mac are not not in the analysis to the computer options
I want to be able to scan documents directly from the control panel of the printer on my Mac. When I select Scan--> the computer, using the Panel, it lists only my PC computer. How the all-in-one to see my Mac for that. I use a wireless connection
-
move the Panel between monitors without losing data?
I read here and here for help. The best that I can deduct is to call SetSystemAttribute and change the ATTR_DEFAULT_MONITOR value before making a followed LoadPanel of a DisplayPanel. Then to change the Panel of this monitor to the other, I have to
-
I have two large black areas on each side of my screen. How to resize my screen to fit the screen of my computer? (and yes I tried the button expand) :))