How to export all the features of the tables.
I have a problem, I have altered my tables (enable row movement) but when I export them into a new schema, that feature doesn't be exported. How could I do in order to export it?????
What's your Oracle version?
Looks like exp/imp even data pump won't retain row movement information, you might have to manually enable after import.
PS, I also tried dbms_metadata.get_ddl with no luck.
TEST@rman> create table me3 (id number) enable row movement
2 /
Table created.
TEST@rman> select dbms_metadata.get_ddl('TABLE','ME3','TEST') from dual
2 /
DBMS_METADATA.GET_DDL('TABLE','ME3','TEST')
CREATE TABLE "TEST"."ME3"
( "ID" NUMBER
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS"
Similar Messages
-
How to export all the views in one schema?
Hi,
I have more than 1000 views in one shcema.
How to export all the views in one schema?
AmyHi,
It's not a very easy question, I have develop a script wich create a script to create view from old database to new database :
/* &1: Oracle SID Source
/* &2: Oracle Schema Source
SET HEAD OFF
SET VERIFY OFF
SET PAGESIZE 0
SET LONG 40000000
SET LONGCHUNKSIZE 2000
SET LINESIZE 2000
SET FEEDBACK OFF
CREATE TABLE RECREATE_VIEW(VIEW_NAME VARCHAR2(30), TEXT LONG);
/* Selection du texte de la vue */
DECLARE
w_text long;
w_text_debut long;
w_text_column long;
w_view varchar2 (30);
w_schema varchar2 (8):='&2';
CURSOR w_cursor IS
SELECT a.view_name, a.text
FROM dba_views a
WHERE a.owner = w_schema;
CURSOR w_column IS
SELECT DECODE (ROWNUM,
1, 'CREATE OR REPLACE FORCE VIEW ' || '&' || '1..'
|| a.table_name || chr(10)
|| '('
|| a.column_name
|| DECODE (ROWNUM, nbcolumns, ')' || chr(10) || 'AS' || chr(10), ',' || chr(10))
FROM (select column_name,table_name
FROM dba_tab_columns
WHERE owner = '&1'
AND table_name = w_view
order by column_id ) a,
(SELECT COUNT (1) nbcolumns
FROM dba_tab_columns
WHERE owner = '&1'
AND table_name = w_view
GROUP BY owner, table_name) b
order by rownum;
BEGIN
OPEN w_cursor;
LOOP
FETCH w_cursor INTO w_view, w_text;
EXIT WHEN w_cursor%NOTFOUND;
w_text_debut := NULL;
w_text_column := NULL;
OPEN w_column;
LOOP
FETCH w_column INTO w_text_column;
EXIT WHEN w_column%NOTFOUND;
w_text_debut := w_text_debut || w_text_column || ' ';
w_text_column := NULL;
END LOOP;
CLOSE w_column;
w_text := w_text_debut||w_text||';';
insert into RECREATE_VIEW(VIEW_NAME, TEXT) VALUES (w_view, w_text);
COMMIT;
w_text := NULL;
w_view := NULL;
END LOOP;
CLOSE w_cursor;
END;
SPOOL scripts_views_&1..sql
PROMPT SPOOL scripts_views_&1..log
PROMPT
SELECT TEXT
FROM RECREATE_VIEW;
PROMPT
PROMPT SPOOL OFF
PROMPT
SPOOL off
PROMPT /* Formattage du fichier SQL */
!sed 's/[ ]*$//' scripts_views_&1..sql > aprilia.tmp
!rm scripts_views_&1..sql
!mv aprilia.tmp scripts_views_&1..sql
DROP TABLE RECREATE_VIEW;
EXIT
I hope that help you.
Nicolas. -
How to export all the man page in mac to PDF?
How to export all the man page in mac to PDF?
I have tried "man -t cat | pstopdf -i -o ~/Desktop/cat.pdf" but this only output one page.
How could I dump all the man pages to pdf with one or few command as possible?
The other question is, I copy all the man pages form /usr/share/man, they are .gz.
After I unzip them and open with less, texteidtor, ultraeditor, all the formate are weird.
Is there any tool could open them with the right formate as man does?
I know the man in linux uses the tool "less" to read man pages. How about mac???I use Bwana. Copy all and paste into TextEdit. Then, save it. This is the beginning for diskutil:
diskutil(8) BSD System Manager's Manual diskutil(8)
NAME
diskutil -- Modify, verify and repair local disks.
SYNOPSIS
diskutil [quiet] verb [options]
DESCRIPTION
diskutil manipulates the volume-level structure of local disks. It pro-
vides information about, and allows the administration of, the partition-
ing scheme of disks, optical discs, and AppleRAID sets.
VERBS
Each verb is listed with its description and individual arguments.
list [-plist | device]
List disks. If no argument is given, then all disks and all
of their partitions are listed.
If -plist is specified, then a property list will be emitted
instead of the normal user-readable output. If a device is
specified, then instead of listing all families of whole disks
and their partitions, only one such family is listed. In that
case, specifying either the whole disk or any of its slices
will work. The -plist and device arguments may not both be
specified at the same time. -
How to find all the tables associated for a particular transaction
Hi-
May I know how to find all the tables, related(foreign key) tables for a transaction within SAP GUI?
Up to my technical knowledge, this can be achieved by looking database diagrams from DB level. But that would be for entire database as a whole. What I'm expecting is to see transaction level relative tables that too from SAP GUI. Please share the possibilities if any.
Regards
SekharDear Micky Oestreich
May be we possess expertise or high level experience, it should not show up in our way of communication. Every professional starts with the basic stuff to learn. When the question is raised in such minimum polite way, the same level of courtesy is expected in return. If you felt my question was basic, you might have refused it gently. If you are in good mood or bad mood it doesn't matters.
Hi Vengal Rao
Thanks for your response. It helped me.
Regards
Sekhar -
How to see all the tables in ABAP
how to see all the tables in ABAP
i need to see all the tables present in tcode se16.Hi Thiru ,
its tough to give all.so pls see the below links u can get all.
http://www.erpgenie.com/abap/tables.htm
https://www.sdn.sap.com/irj/sdn/advancedsearch?query=listofalltablesin+abap&cat=sdn_all
http://www.guidancetech.com/people/holland/sap/abap/
http://www.sap-img.com/ab017.htm
http://abap-gallery.blogspot.com/
thanks
karthik -
How to export all the site files to the new computer
I'll be buying a new computer soon and need to export all the
site files (usernames and passwords) to that. I know how to export
individual site information, but the passwords are encrypted. Also,
is there way to save all sites at once and then just transfer that
to the new machine?This is a multi-part message in MIME format.
------=_NextPart_000_0039_01C852A0.8D4985F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Choose Site > Manage Sites and then use the Export feature
in the Site =
Manager. You'll have an option to export all settings
(including =
username and password). DW stores them in .ste files, which
you can =
later use the Site Manager to Import.=20
By the way, the Import/Export features work with multiple
files, just do =
a multi-select before clicking the Export button and select
multiple =
.ste files when importing.
Best - Joe
Joseph Lowery
Vice President of Marketing, WebAssist
Author of Dreamweaver CS3 Bible
"Mikkola" <[email protected]> wrote in
message =
news:[email protected]...
> I'll be buying a new computer soon and need to export
all the site =
files=20
> (usernames and passwords) to that. I know how to export
individual =
site=20
> information, but the passwords are encrypted. Also, is
there way to =
save all=20
> sites at once and then just transfer that to the new
machine?
>
------=_NextPart_000_0039_01C852A0.8D4985F0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16587"
name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Choose Site
> Manage Sites and then =
use the=20
Export feature in the Site Manager. You'll have an option to
export all =
settings=20
(including username and password). DW stores them in .ste
files, which =
you can=20
later use the Site Manager to Import.
</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>By the way, the
Import/Export features =
work with=20
multiple files, just do a multi-select before clicking the
Export button =
and=20
select multiple .ste files when
importing.</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Best -
Joe</FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Joseph
Lowery<BR>Vice President of =
Marketing, <A=20
href=3D"
http://www.webassist.com">WebAssist</A><BR>Author
of <A=20
href=3D"
http://www.idest.com/dreamweaver/">Dreamweaver
CS3 =
Bible</A></FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>"Mikkola"
<</FONT><A=20
href=3D"mailto:[email protected]"><FONT
face=3DArial=20
size=3D2>[email protected]</FONT></A><FONT
face=3DArial =
size=3D2>> wrote=20
in message </FONT><A =
href=3D"news:[email protected]"><FONT=20
face=3DArial =
size=3D2>news:[email protected]</FONT></A><FONT=20
face=3DArial size=3D2>...</FONT></DIV><FONT
face=3DArial size=3D2>> =
I'll be buying a=20
new computer soon and need to export all the site files
<BR>> =
(usernames and=20
passwords) to that. I know how to export individual site
<BR>> =
information,=20
but the passwords are encrypted. Also, is there way to save
all <BR>> =
sites=20
at once and then just transfer that to the new=20
machine?<BR>></FONT></BODY></HTML>
------=_NextPart_000_0039_01C852A0.8D4985F0-- -
How to export all the workbooks from database to a filesystem on 4.1.37 ?
We have all the workbooks stored in the database and I wanted to them to be
saved in the filesystem (4.1.37).
Is there a batch file with which I can export all the workbooks and put them individually
(abc.dis,xyz.dis) on the filesystem ?
Show me an example ? rather than directly me to some documents ?
Any help !!!!!!!!Using command line options as follows:
<file-workbook>
/open <file-workbook>
/opendb <file-workbook>
/connect <username>/<password>@<database>
/p <file-workbook>
/pt <file-workbook> <printer> <driver> <port>
/export <format> <export-file>
/sheet {<sheet-name> | <sheet-number> | ALL}
/batch
/parameter <parameter-name> <parameter-value>
An example of running the file to a printer in batch mode (entered
from the command line):
c:\orant\discvr30\dis30usr.exe /connect scott/tiger@yogi733 /p c:
\orant\discvr30\test.dis /batch
An example of exporting to an html file in batch (entered from the
command line):
c:\orant\discvr30\dis30usr.exe /connect scott/tiger@yogi733 /open c:
\orant\discvr30\test.dis /export HTML c:\test.htm /batch
An example of exporting to a html file in batch when the parameter
names used contains spaces i.e parameter name is 'day of week'
c:\orant\discvr30\dis30usr.exe /connect user/password@db /open
"d:\orant\discvr30\testparameter.dis" /parameter "Day of Week" Wednesday
/export html d:\test.html /batch
Hope it helps!
Regards,
Marcos -
How to unlock all the tables & schemas in Oracle 9i
plz help me out with how to bring isqlplus screen & how to unlock all the schemas & tables...
Hi,
You should see SQL plus, if you have oracle installed in your machine, it should be in Oracle/Application/SQL plus or look for this sqlplusw.exe in your machine.
You can UNLOCK the user
alter user usename account unlock ;
Thanks -
How to move all the tables from one tablespace to other for a whole schema
Hi,
Is there any way to move all the tables in a schema from one tablespace to other?
If so please help me out to do that.
Thanks
Regards
Gathahi,
here is the steps to move SCOTT's objects from their current tablespace to a NEW_TABLESPACE
would be:
1) do an export of all of scott's objects. Make sure no one modifies them after you
begin this process. You will lose these changes if they do.
$ exp userid=scott/tiger owner=scott
2) you would drop all of scotts tables. This will get the indexes as well. I don't
suggest dropping the user SCOTT but rather dropping scott's objects. Dropping scott
would cause any system priveleges SCOTT has to disappear and the import would not restore
them. This script can be used to drop someones tables:
set heading off
set feedback off
set verify off
set echo off
spool tmp.sql
select 'drop table &1..' || table_name || ' cascade constraints;'
from dba_tables
where owner = upper('&1')
spool off
@tmp.sql
3) You would modify the user to not have unlimited tablespace (else the IMP will just
put the objects right back into the tablespace they came from) and then give them
unlimited quota's on the new tablespace you want the objects to go into and on their
temporary tablespace (for the sorts the index creates will do)
alter user SCOTT default tablespace NEW_TABLESPACE
revoke unlimited tablespace from SCOTT
alter user SCOTT quota unlimited on NEW_TABLESPACE
alter user SCOTT quota unlimited on SCOTTS_TEMPORARY_TABLESPACE
4) you will IMP the data back in for that user. IMP will rewrite the create statements
to use the users default tablespace when it discovers that it cannot create the objects
in their original tablespace. Please make sure to review the file imp.log after you do
this for any and all errors after you import.
imp userid=scott/tiger full=y ignore=y log=imp.log
5) you can optionally restore 'unlimited tablespace' to this user (or not). If you do
not, this user can only create objects in this new tablespace and temp (which in itself
is not a bad thing)...
Regards,
Mohd Mehraj Hussain
http://mehrajdba.wordpress.com -
How to find all the table used in a report
Hi Expert ,
Is there is any program to find out all the tables which are used in a perticular report .
Thanks in advance
TarakWell, so far Viquar Iqbal has given the only really correct answer - use SQL trace. The reason the others are incomplete, is because they don't consider that a report might call a function module or a class method that accesses a table. In fact, for many applications this is exactly what happens - db accesses are abstracted away from the main program.
The other alternative to SQL trace is to use Run Time Analysis. The advantage of SQL trace is that it shows the tables hit in order.
matt -
How to truncate all the tables of my database
hi guys
I am using SQL Server 2012 , i need to delete all the data present in my database .I mean i want to truncate all the tables in my database , so please suggest me the easiest way .If the tables are referenced by FK it will be failed....
Basically you can use the below statetemnt
DECLARE @TruncateStatement nvarchar(4000)
DECLARE TruncateStatements CURSOR LOCAL FAST_FORWARD
FOR
SELECT
N'TRUNCATE TABLE ' +
QUOTENAME(TABLE_SCHEMA) +
N'.' +
QUOTENAME(TABLE_NAME)
FROM
INFORMATION_SCHEMA.TABLES
WHERE
TABLE_TYPE = 'BASE TABLE' AND
OBJECTPROPERTY(OBJECT_ID(QUOTENAME(TABLE_SCHEMA) +
N'.' +
QUOTENAME(TABLE_NAME)), 'IsMSShipped') = 0
OPEN TruncateStatements
WHILE 1 = 1
BEGIN
FETCH NEXT FROM TruncateStatements INTO @TruncateStatement
IF @@FETCH_STATUS <> 0 BREAK
RAISERROR (@TruncateStatement, 0, 1) WITH NOWAIT
EXEC(@TruncateStatement)
END
CLOSE TruncateStatements
DEALLOCATE TruncateStatements
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
How to export all the projects at one time
I got about 20 projects and content about 7000 pics. I don't want to just export project each time, and I would like to just export all of them at one time, is it possible?
I don't know where and how to change the name of the master files, and how to organize them properly. Such as I dragged pics from one project to another album, but if I try to delete the pic in the project, it warns me I will delete the master file as well. In the end, I have so many unwanted pic in the project and I can't delete them. Please help with the organizing ...Let's start from the whole story. I got too many photos and too many project which taken too much spaces in my computer. So I want to delete those not too good ones and only keep a few in my laptop. On the other hand, some of those not too good ones I want to keep as well. So I use time machine to back up them, but it seems time machine only keep them for about 3 months. In that case, if I delete them, I don't think I would be able to find them after 3 months time.
I am thinking about exporting them to an external hard drive as an extra backup.
Now, another part of the story, I was exploring Aperture, setting up different projects, album and dragging the pics around, then everything becomes a mess. I notice that if I drag a photo from project A to B, then the photo will only appear in B but disappeared in A. But if I drag photo from Project C to album D, both of them would have the pic, delete the pic either in the project or the album, it will warn me that I will delete the master file... I don't know how come.
Therefore, puzzled by where and how they store the master file and how they referenced it, I am here. -
How to export all the attachments from Oracle Apps R12?
Hi
Our configuration single node EBS R12.0.6, DB 10.2.0.3 & AIX 5.3.7. We are live with ERP since 2009. In our application/database instance, we have hundreds of attachments for the PO and iRecruitment candidates CV's etc. How can we analyze the details of the attachments like fnd_attached_documents table, etc?
Besides, we are planning to implement new document management system. Our management is interested to keep some/all of the uploaded ERP attachments into Document Management System repository. So, my question is how can we export all these attachments from ERP?
Please help me.
Regards
ArizuddinBesides, we are planning to implement new document management system. Our management is interested to keep some/all of the uploaded ERP attachments into Document Management System repository. So, my question is how can we export all these attachments from ERP?Is this a 3rd party software? If yes, you may contact them and see if they provide any way to migrate attachments.
You may also see the following docs.
How to migrate the old attachments from a prior release [ID 558470.1]
How To Download Attachment File From fnd_lobs [ID 1457782.1]
Attaching A File To An Object via A Public API [ID 281130.1]
How To Extract attachements From The Database When a URL Is in The APPLSYS FND_LOBS Table Under The Heading of File_Name [ID 800973.1]
Is There A File Size Limit For EBS Attachments [ID 739643.1]
Thanks,
Hussein -
How to see all the table contents in SM30
Hi All,
I have created a Z-table. In that records are stored based on the dates.
Suppose :
The fields and their values in the table are as below,
Field1 Field2 Field3
A 22/02/2008 31/12/9999
A 12/01/2006 21/02/2008
B 10/11/2007 31/12/9999
B 27/05/2006 09/11/2007
But in if we go in SM30 transaction, it is showing only recent records i.e.as below,
Field1 Field2 Field3
A 22/02/2008 31/12/9999
B 10/11/2007 31/12/9999
Please tell me how can I get the full contents of the table in SM30.Hi suman,
Is this Ztable is created by you or someone else
Because while creating the Table maintainence, they might have created a logic at events in table maintainence as
(at new) statement.
So while displaying it is picking only the first record with Primary key. please check it.
REward me if helpful. -
How to find all the tables by feild value in oracle
Hi ...
I have a requirement to find the tables in a particular schema(suppose DEMO) by Field value..
Ex:
suppose in a schema called DEMO i have the tables.......T1,T2,T3,T4,T5..
all the above tables have the name column..
now i wan to know the tables whose column(name) have value as rajani.......
pls help.........
thank you
.+Solutions from previous requests for the same...
michaels> var val varchar2(5)
michaels> exec :val := 'as'
PL/SQL procedure successfully completed.
michaels> select distinct substr (:val, 1, 11) "Searchword",
substr (table_name, 1, 14) "Table",
substr (t.column_value.getstringval (), 1, 50) "Column/Value"
from cols,
table
(xmlsequence
(dbms_xmlgen.getxmltype ('select ' || column_name
|| ' from ' || table_name
|| ' where upper('
|| column_name
|| ') like upper(''%' || :val
|| '%'')'
).extract ('ROWSET/ROW/*')
) t
-- where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
order by "Table"or
11g upwards
SQL> select table_name,
column_name,
:search_string search_string,
result
from (select column_name,
table_name,
'ora:view("' || table_name || '")/ROW/' || column_name || '[ora:contains(text(),"%' || :search_string || '%") > 0]' str
from cols
where table_name in ('EMP', 'DEPT')),
xmltable (str columns result varchar2(10) path '.')
TABLE_NAME COLUMN_NAME SEARCH_STRING RESULT
DEPT DNAME es RESEARCH
EMP ENAME es JAMES
EMP JOB es SALESMAN
EMP JOB es SALESMAN
4 rows selected.
Maybe you are looking for
-
New macbook pro battery for late 2008 macbook pro dies fast.
I have a late 2008 macbook pro 2.4 HGz Intet Core 2 Duo with 2 GB of ram. I've had it since 2009 and just got a new battery, as the old one finally gave up. That being said, the new battery dies quite fast and I'm not sure why. Any suggestions would
-
"File in use" pop up while trying to open excel files
Hi, We are regularly experiencing difficulties accessing excel documents residing in our Sharepoint site collection that are shared by numerous members of the department for updating. We are aware of the 10 minute rule for excel documents, where if y
-
How do i save emails to folders on my mac
i want to save emails to folders on my mac to emable me to back them up to a hard drive, i can move one at a time but not multiple mails help!!
-
IPhoto corrupt in all drive disks.
I installed iLife 9 and have been using iPhoto 8.1.1 successfully, in conjunction with iPhoto Library Manager, in several volumes. Quite suddenly I have found the application corrupted in all of them: when I try to open any with any library it will o
-
Servlet - param passed in url ,lose carons
Hi, I have the following servlet code public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException // res.setContentType("text/html;charset=ISO-8859-2"); PrintWriter out = res.getWriter(); String param = req