Move a single table with data engine
HelloI'm new on data mover. I want to move a table and I used the following script
the value of log c:\app\psft\export.log.
output c:\app\psft\export.dat;
export PS_COMMISSION;
I get the error
unsuccessful end 'command is not valid in bootstrap mode "?
help please?
Use non-bootstrap mode instead (e.g. PS or VP1 or whatever else as SYSADM).
Nicolas.
Tags: Oracle Applications
Similar Questions
-
Identify the tables with data or not
Hello
I want to find the tables with data and containing not data without checking each table. Is there a possible way?Like this?
select table_name, to_number( extractvalue( xmltype( dbms_xmlgen.getxml('select count(*) c from '||table_name)) ,'/ROWSET/ROW/C')) count from user_tables;
Or may be
select table_name, CASE WHEN to_number( extractvalue( xmltype( dbms_xmlgen.getxml('select count(*) c from '||table_name)) ,'/ROWSET/ROW/C'))>0 THEN 'Table Has Data' ELSE 'Table is Empty' END from user_tables;
-
Impossible to get a style work table with dat Spry in DW CS6
Hi - I hope someone can help me to get a table style to work as a Spry data set. I first put in place a beautiful table with extendable drop down:
http://designerandpublisher.com/tables/index.html
I then followed this Adobe tutorial:
http://www.Adobe.com/devnet/Dreamweaver/articles/spry_creating_html_data_set.html
For the final result, you can see that all of the style has been removed:
http://designerandpublisher.com/tables/Spry-test.html
Although when you click the column header, sorting seems to work great, but I obviously cannot submit this to the customer because it does not resemble the style table.
Can someone tell me what I am doing wrong? I thought by styling the table first and then put in Spry, I thought it would work. I also get this data style set working for the customer because I used Spry for other things like accordions and it is easy to use.
Thank you.
Just thinking a little further, with stretch panels Table seems to work pretty well. Why would you want to complicate things by introducing a dataset?
-
Fill a table with date values with a fixed increment
Hello
I want to fill a table with a date column with the increment of a fixed value date values. The start date is selectable, the increment is selectable and the number of records is adjustable as well.
For example
start date is 1905-Jan-02, 15:00 (DD-MON-YYYY, HH24:MI:SS)
increment is 1 hour and 5 minutes
None. records is 10
then the dates in the table must be
REC 1 1905 - Jan - 02, 15:00
REC 2 1905 - Jan - 02, 16:05
REC 3 1905 - Jan - 02, 17:10
....
REC 9 1905 - Jan - 02, 23:40
REC 10 1905 - Jan - 03, 00:45:00
We are working on 11 GR 2, the number of records can be between a few hundred and a few million and they must be ordered with Crescent of time (maybe to have a whole id).
Any ideas how to fill this table (simple and fast?) using sql / plsql are welcome.
Thanks, HannesSomething along the lines of:
SQL> alter session set nls_date_format = 'YYYY-Mon-DD HH24:MI:SS'; Session altered. SQL> select trunc(sysdate,'HH')+((rownum-1)*(1/24)*(65/60)) as dt 2 from dual connect by rownum <= 20; DT -------------------- 2010-Aug-26 16:00:00 2010-Aug-26 17:05:00 2010-Aug-26 18:10:00 2010-Aug-26 19:15:00 2010-Aug-26 20:20:00 2010-Aug-26 21:25:00 2010-Aug-26 22:30:00 2010-Aug-26 23:35:00 2010-Aug-27 00:40:00 2010-Aug-27 01:45:00 2010-Aug-27 02:50:00 2010-Aug-27 03:55:00 2010-Aug-27 05:00:00 2010-Aug-27 06:05:00 2010-Aug-27 07:10:00 2010-Aug-27 08:15:00 2010-Aug-27 09:20:00 2010-Aug-27 10:25:00 2010-Aug-27 11:30:00 2010-Aug-27 12:35:00 20 rows selected.
-
Copy the table with data and constraints
Hi all
I need to create a stored procedure that creates a table and copy a table with its data and constraints. We use it for backups. Y at - it all stored procedures out there who can do it, im pretty new to this and I need to create a stored procedure that can achieve this.
any help will be much appreciated
Thank you
KHello
The procedure that you created is invalid
Recompile it, and then type
show error
Rectivy the error until the procedure becomes valid.
Concerning
Anurag -
Create table with data in the column
Create a new table, just want to know if there is a way to add a new column to the table with a value in all areas of this column when new rows are added to that this column will always be the same value
As...
name | address | zip | assets
Active will always be Yes.
I do a trigger?Use the default...
create table (test)
name varchar2 (20).
address varchar2 (40),
zip number (7).
Active VARCHAR2 (3) DEFAULT NULL NOT 'yes'); -
Move from a table with htmldb_get
Take a look at the following of the JS:
Is it possible to recover the arr in application process foo? I tried something like that, but it was not good:ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=foo',0); arr = new Array(); arr[0] = 'Lorem'; arr[1] = 'Ipsum'; ajaxRequest.addParam('x01', arr); alert(ajaxRequest.get());
This returns the error below in the browser:declare type arr is table of clob index by BINARY_INTEGER; clobArr arr; begin clobArr := wwv_flow.g_x01; htp.prn(clobArr(0)); end;
So a table with htmldb_get possible?sqlerrm:ORA-06550: line 5, column 23: PLS-00382: expression is of wrong type ORA-06550: line 5, column 3: PL/SQL: Statement ignored
Hello
Just to know you can do it too
JavaScript
ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=FOO',0); arr = new Array(); arr[0] = 'Lorem'; arr[1] = 'Ipsum'; for( var i=0,len=arr.length;i
);}alert(ajaxRequest.get()); And On Demand Process FOO
htp.prn(apex_application.g_f01(2));
Regards, Jari Edited by: jarola on Aug 25, 2010 11:39 AM
-
copy a table with data of type long
I have a table in which only one column is long. This table also contains a folder.
How can I make another exactly the same as this (data-structure)?Hagrid says:
I have a table in which only one column is long. This table also contains a folder.How can I make another exactly the same as this (data-structure)?
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> help copy COPY ---- Copies data from a query to a table in the same or another database. COPY supports CHAR, DATE, LONG, NUMBER and VARCHAR2. COPY {FROM database | TO database | FROM database TO database} {APPEND|CREATE|INSERT|REPLACE} destination_table [(column, column, column, ...)] USING query where database has the following syntax: username[/password]@connect_identifier
LONG data type has been deprecated for at least a decade.
STOP to use it now! -
Retrieve a single table with RMAN
Hello
I'm working on a database of Oracle 11 g Release 11.1.0.6.0 - 64 bit Production With the Real Application Clusters option.
I did a bad update on a table.
I have a level 0 backup before the update
Is it possible to recover the unique table in an instant before the update with RMAN?
Thanks in advance.
SamuelThis is called a point in time recovery.
Here you must create an auxiliary database from the backup.
If you have space in your current server then you can create it here or otherwise in another server.
1 restore the system, sysaux, cancellation and this tablespace that contains the deleted table.
2 drop all the other tablespace in the auxiliary database in State of Mount
3. recover the database to when the table was dropped or updated updated
4. take the auxiliary database table export and import it into the original database -
I try to explain my problem:
I have a query that lists sales grouped by day like this:
SELECT S.DAY, SUM (S.AMOUNT)
SALES S
WHERE S.DAY BETWEEN SYSDATE-100 AND SYSDATE
S.DAY GROUP
I need the query also lists the days that were not given.
I think the solution is to use a temporary table using subquery that has a list of values of days:
SELECT D.DAY, SUM (S.AMOUNT)
S (*) D, SALES
WHERE S.DAY (+) = D.DAY
GROUP OF D.DAY
Anyone know how to create the subquery (*) with the list of all the days, from the range (for example, SYSDATE-100 to SYSDATE)?
Thank you.Hello
You'd have to utilze a little thing called a generator of line:
SQL> select trunc(sysdate) -level your_date from dual connect by level < 10 YOUR_DATE --------- 16-FEB-11 15-FEB-11 14-FEB-11 13-FEB-11 12-FEB-11 11-FEB-11 10-FEB-11 09-FEB-11 08-FEB-11 9 rows selected.
Use it in your query in the form of conduct table and outer join to the table sales.
Concerning
Peter -
Put the loop of variables in a single table with formatting (PHP)
I have the following loop;
<? PHP
$i = 1;
While ($i < = $num_rows)
{
$tempquantity = "extra". $i.' quantity ';
$tempcomments = "extra". $i."comments";
$tempname = "extra". $i.' name ';
$tempprice = "extra". $i."price";
$$tempquantity = $_POST ['extra'. $i. "quantity"];
$$tempcomments = $_POST ['extra'. $i. "Comments"];
$$tempname = $_POST ['extra'. $i. "name"];
$$tempprice = $_POST ['extra'. $i. 'price'];
Print "Extra name: $$tempname;
Print "< br / > ';
Print "Extra price:". "." $$tempprice;
Print "< br / > ';
Print "quantity:". "." $$tempquantity;
Print "< br / > ';
Print "reviews:". "." $$tempcomments;
Print "< br / > < br / > ';
$i++;
}
? >
Which, since there are 3 rows, outputs the following:
Extra-Nom: dfvgfddf
Extra price: 4
Quantity required: 67
Customer reviews: gtfh
Extra-Nom: wewew
Extra price: 34
Required quantity: 45
Customer feedback: thtrt
Extra name: ewewe
Extra price: 43
Required quantity: 12
Customer feedback: gdfgg
I want to be able to do is to show the output above in a PHP email body variable which, according to me, this means that the loop variables must be in a single array variable as coding in a body of email variable is not allowed. How can I put a loop of variables like that in a single variable, and how to keep the < br / > tags and names before variables ("name Extra:' etc."), so it seems that it should in the PHP email body?
Thanks in advance
I also need to set the variables generated by the loop in a single database field
Why? Looks like a mistake to me.
Anyway, why not change it.
The name of the tenant: $renternameon this subject.
" The tenant's name: $rentername.$i = 1;
While ($i<>
{
$tempquantity = "extra". $i.' quantity ';
$tempcomments = "extra". $i."comments";
$tempname = "extra". $i.' name ';
$tempprice = "extra". $i."price";
$$tempquantity = $_POST ['extra'. $i. "quantity"];
$$tempcomments = $_POST ['extra'. $i. "Comments"];
$$tempname = $_POST ['extra'. $i. "name"];
$$tempprice = $_POST ['extra'. $i. 'price'];
$body. =<>
Additional name: $$tempname
Extra charge: $$tempprice
Required amount: $$tempquantity
Customer reviews: $$tempcomments
EOT;
$i++;
}
and then remove the loop where it occurs earlier.
-
How to combine the large number of tables of pair key / value in a single table?
I have a pair key / value tables of 250 + with the following features
(1) keys are unique within a table but may or may not be unique in the set of tables
(2) each table has about 2 million lines
What is the best way to create a single table with all unique key-values of all these paintings? The following two queries work up to about 150 + tables
with t1 as ( select 1 as key, 'a1' as val from dual union all select 2 as key, 'a1' as val from dual union all select 3 as key, 'a2' as val from dual ) , t2 as ( select 2 as key, 'b1' as val from dual union all select 3 as key, 'b2' as val from dual union all select 4 as key, 'b3' as val from dual ) , t3 as ( select 1 as key, 'c1' as val from dual union all select 3 as key, 'c1' as val from dual union all select 5 as key, 'c2' as val from dual ) select coalesce(t1.key, t2.key, t3.key) as key , max(t1.val) as val1 , max(t2.val) as val2 , max(t3.val) as val3 from t1 full join t2 on ( t1.key = t2.key ) full join t3 on ( t2.key = t3.key ) group by coalesce(t1.key, t2.key, t3.key) / with master as ( select rownum as key from dual connect by level <= 5 ) , t1 as ( select 1 as key, 'a1' as val from dual union all select 2 as key, 'a1' as val from dual union all select 3 as key, 'a2' as val from dual ) , t2 as ( select 2 as key, 'b1' as val from dual union all select 3 as key, 'b2' as val from dual union all select 4 as key, 'b3' as val from dual ) , t3 as ( select 1 as key, 'c1' as val from dual union all select 3 as key, 'c1' as val from dual union all select 5 as key, 'c2' as val from dual ) select m.key as key , t1.val as val1 , t2.val as val2 , t3.val as val3 from master m left join t1 on ( t1.key = m.key ) left join t2 on ( t2.key = m.key ) left join t3 on ( t3.key = m.key ) /
A couple of questions, then a possible solution.
Why the hell you have 250 + tables pair key / value?
Why the hell you want to group them in a table containing one row per key?
You could do a pivot of all the tables, not part. something like:
with t1 as ( select 1 as key, 'a1' as val from dual union all select 2 as key, 'a1' as val from dual union all select 3 as key, 'a2' as val from dual ) , t2 as ( select 2 as key, 'b1' as val from dual union all select 3 as key, 'b2' as val from dual union all select 4 as key, 'b3' as val from dual ) , t3 as ( select 1 as key, 'c1' as val from dual union all select 3 as key, 'c1' as val from dual union all select 5 as key, 'c2' as val from dual ) select key, max(t1val), max(t2val), max(t3val) FROM (select key, val t1val, null t2val, null t3val from t1 union all select key, null, val, null from t2 union all select key, null, null, val from t3) group by key
If you can do it in a single query, Union all 250 + tables, you don't need to worry about chaining or migration. It may be necessary to do this in a few passes, depending on the resources available on your server. If so, I would be inclined to first create the table, with a larger than normal free percent, making the first game as a right inset and other pass or past as a merger.
Another solution might be to use the approach above, but limit the range of keys with each pass. So pass we would have a like predicate when the key between 1 and 10 in every branch of the union, pass 2 would have key between 11 and 20, etc. In this way, everything would be straight inserts.
That said, I'm going back to my second question above, why the hell you want or need to do that? What is the company you want to solve. There could be a much better way to meet the requirement.
John
-
Drop a large number of tables with the same prefix
Hello
can you help me to make a script to move all the tables with the same prefix = TEST_LINK_?
Thank you very much.
CrystalHi crystal,
Here's something to start. It does not all FK constraints on those tables and assumes that the executor is the owner.
declare pstmt constant varchar2(255) := 'drop table :t purge'; vstmt varchar2(255); begin for rec in (select table_name from user_tables where table_name like 'TEST_LINK\_%' escape '\') loop vstmt := replace(pstmt, ':t', rec.table_name); dbms_output.put_line(vstmt || ';'); -- execute immediate vstmt; end loop; end; /
Concerning
Peter -
For a single table import failed...
Hello
On the production server, I reported a user db, let's call it PRD_USER, with tablespace PRD_TBL default.
On the development server, I reported a user db, let's call it PRD_USER, with tablespace DEV_TBL default.
On the production server, I use the db of exp utility to import as:
IMP System/Manager of the user PRD_USER touser = PRD_USER = ignore = file_name = «...» ' log = «...» ».
Succeeds the import for about 25 tables and indexes and constraints, but it fails for a single table with the error: {I don't remember the error ORA- and I do not have access currently} DEV_TBL tablespace does not exist.
Of course this tablespace does not exist on production env. But how this problem arises because the default tablespace for the user is not DEV_TBL but PRD_TBL...?
Do you have any idea what can be the cause and how can I overcome this problem when importing...? {Note: I gave a temporary solution... take the table creation sql script leaving aside the reference of the tablespace "DEV_TBL"}.
The two servers work in exactly the same version of DB...
Note: I use DB 10g v.2
Thank you
SIMIf the table has Partitions, import strives to create the Partitions (in the CREATE TABLE statement) on the original table space.
OR there is a LOB segment in the table import strives to create on the original table space.
Hemant K Collette
-
How to merge data from the table with a single line
Hello
I have three tables subscription_type, the address and the person. Here are the details of the table
Person Subscription_type Address
Person_Id AdressType_id Address_id
Person_name Description Address_type_id
Person_id
Address details
There are three types of different address - home, postal and previous.
Each person can have these three different addresses.
I want to create a view that displays all addresses of three of each person in the table of the person in a single line.
Any help please
In your example, there are 2 rows of columns street1, TOWN, SUBURB etc for a single person. To convert this into a single line, with the new columns we could simply use CASES or DECODE in the select as the SQL below. To understand why consolidation function THAT MAX is used - remove the MAX and GROUP BY in SQL keyword and try.
Select full_name
, max (case when description = "Home" then end street1) Home_Street
, max (case when description = "Home" then end suburb) home_suburb
, max (case when description = end of the "Home" then City) home_city
, max (case when description = "Home" then postal code end) home_postcode
, max (case when description = "Home" then end state_name) home_state
, max (case when description = 'Postal' then end street1) Postal_Street
, max (case when description = 'Postal' and then end of suburb) Postal_suburb
, max (case when description = 'Postal' then the city) Postal_city
, max (case when description = 'Postal' and then end of CP) Postal_postcode
, max (case when description = 'Postal' then state_name end) Postal_state
, max (case when description = "Back" then end street1) Prev_Street
, max (case when description = "Back" then end suburb) Prev_suburb
, max (case when description = "Back" then city end) Prev_city
, max (case when description = "Back" then postal code end) Prev_postcode
address a
S State
No p
Subscription_type att
where a.person_id = p.person_id
and a.state_id = s.state_id
and a.address_type_id = att.address_type_id
Full_name group
Maybe you are looking for
-
I was recently cleaning my Apple Watch and saw a small amount of micro scratches on the stainless steel case. I was wondering if there is a way to remove scratches on the watch case?
-
recover programs after the installation of automatic updates
Without any warning whatsoever, my computer shuts down as automatic updates are installed. I lose all open windows that I work with. When the computer starts, my session is not restored. Files of works, open photo galleries, etc., don't open as well,
-
plsss help me... activate or unluck my iphone4
plsss help me... activate or unluck my iphone4
-
Apps are not loading on ATV (3rd generation)
Apple TV 3 rd Gen will load all the apps. The three I've tried are Crackle, Netflix, ESPN and ABC. It is not always the initial page that won't load, but somewhere along the way to watch a show they get stuck on a turning wheel. I tired the following
-
Satellite A200 freezes when I download something using Torrent
I have an A200 with Vista on it. I used the torrents to download the stuff I need. Initially, I used uTorrent. Once I had a problem each time I started downloading my machine makes freez and I had to reboot the system. I did a fresh install of Vista