Creation of a database of duplicate from a full RMAN bkp
Version - 10.2.0.4 on AIX 6.1RAC (2 knots)
Size of DB: 2 TB
Due to a hardware upgrade, we must move our CARS database temporarily. We took a full backup (compressed RMAN) who took nearly 7 hours. As a result of an unforeseen problem, we could not stop the primary DB. Now, she has generated some more archived newspapers.
Our downtime is only 2 hours. Thus, we believe using the existing FULL backup. Let's close the primary DB and logs arch newly created primary DB by using the backup
backup archivelog from sequence 125 until sequence 219 thread 1;
backup archivelog from sequence 453 until sequence 543 thread 2;
In the comic book in elementary school, to get a clean and consistent game newspapers archived, before we stop, we'll bring down the listener (so that no new connections are made) and then we archive the CURRENT LOG of REPEAT online for both nodes for helpalter system archive log current
How can I determine the last sequence # for each thread to which I need to save? (using the above mentioned archivelog backup.. .command)I hope
backup archivelog from sequence .............;
can be done using RMAN when the primary DB instances are in State of Mount?Published by: Tom on January 5, 2011 10:58
Ravi said that we could look at the log RMAN. The output of the previous RMAN run would have shown that ArchiveLogs have been saved in the last run.
In RMAN, you can also query by 'LIST BACKUP OF ARCHIVELOG ALL' to show that ArchiveLogs had been saved.
In RMAN, you can also use the command ' ARCHIVELOG BACKUP all THE NOT BACKUP 1 TIME "backup ArchiveLogs that have not been saved up to - RMAN automatically determines the 'new' archivelogs.". "
Hemant K Collette
Tags: Database
Similar Questions
-
the database error duplicate from one server to another server
Hello
I'm practicing duplicate database to a single database server to another server. Path material and pilot on 2 machines is the same. Here are my steps:
-Clone site:
1 change the listener.ora with content:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain) (PORT = 1521))
)
)
ADR_BASE_LISTENER = / u01/app/oracle
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = u01/app/oracle/product/11.2.0/db_1)
(SID_NAME = orcl)
)
)
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = WE
2. stop and start receiving once again, show message as:
Service "orcl" has 1 instance (s).
Instance "orcl", status UNKNOWN, has 1 operation for this service...
The command completed successfully
3. create pfile from spfile file.
4. stop and startup nomount with pfile is new pfile create in step 3.
--------------------------------------- Source site
1 edit tnsnames.ora with content like:
VVCOREDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = vvcoredb)
)
)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.254.1.235) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
2 run the command of rman like these:
RMAN > Connect target sys@vvcoredb
RMAN > target password database:
RMAN > Connect auxiliary sys@orcl
RMAN > database auxiliary password:
RMAN > DUPLICATE TARGET DATABASE for database orcl active spfile nofilenamecheck.
Then the result show below:
From Db double to 24-SEP-12
using the control file of the target instead of recovery catalog database
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID = 63 type device = DISK
content of Script memory:
{
backup that copy reuse
TargetFile ' / u01/app/oracle/product/11.2.0/db_1/dbs/spfilevvcoredb.ora' auxiliary format
' / u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora';
clone of SQL 'alter system set spfile = "/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora";
}
execution of Script memory
Backup to starting 24-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 74 type device = DISK
Backup finished 24-SEP-12
SQL statement: alter system set spfile = "/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora"
content of Script memory:
{
clone of SQL 'alter system set = db_name
"ORCL" comment =
"reproduce" scope = spfile;
clone to stop immediately;
startup nomount clone;
}
execution of Script memory
SQL statement: alter system db_name set = comment "ORCL" = "duplicate" scope = spfile
Instance Oracle to close
connected to the auxiliary database (not started)
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of Db in dual at 24/09/2012 17:44:12
RMAN-03015: an error has occurred in the script stored memory Script
RMAN-04014: failed to start: ORA-01261: parameter db_recovery_file_dest destination string cannot be translated
ORA-01262: Stat failed on a destination of the file directory
Linux-x86_64 error: 2: no such file or directory
I don't know what wrong with my pfile file? I said to correct my pfile site clone like this:
ORCL.__db_cache_size = 1476395008
ORCL.__java_pool_size = 16777216
ORCL.__large_pool_size = 16777216
ORCL.__oracle_base='/U01/app/oracle'#ORACLE_BASE the value of the environment
ORCL.__pga_aggregate_target = 1342177280
ORCL.__sga_target = 1979711488
ORCL.__shared_io_pool_size = 0
ORCL.__shared_pool_size = 436207616
ORCL.__streams_pool_size = 0
*.audit_file_dest='/U01/app/Oracle/admin/ORCL/adump '
* .audit_trail = "db".
* full = '11.2.0.0.0'
*.control_files='/u01/app/oracle/oradata/orcl/control01.ctl','/u01/app/oracle/flash_recovery_area/orcl/control02.ctl'
* .db_block_size = 8192
* .db_domain = "
* .db_name = "orcl".
*.db_recovery_file_dest='/U01/app/Oracle/flash_recovery_area/vvcoredb '
* .db_recovery_file_dest_size = 4070572032
*.diagnostic_dest='/U01/app/Oracle '
*. Dispatchers ='(Protocol=TCP) (SERVICE = orclXDB)"
* .memory_target = 3313500160
* .open_cursors = 300
* runoff = 150
* .remote_login_passwordfile = "EXCLUSIVE."
* .undo_tablespace = "UNDOTBS1.
Please suggest me I miss some steps when trying to duplicate database?
Any suggestions are welcome.
Thanks in advance!
P/s: sorry for my bad English.This error is because the location of the controlfile specified in your spfile is not present on your server to clone. Change the location of the parameter cntrolfile in spfil or create the same location on the server.
Published by: Slim on 24 Sep 2012 17:47
-
DBUA always necessary when installing the game patches before the creation of the database?
Hello!
I'm actually reinstall my tesserver from scratch. Of course finally system shoul be completely corrected. As performer DBUA really is the boring part of the application of the fix, I wonder if I have to run DBUA at all, if I do all the patches before you create the database. As much I know it shouldn't be necessary, right?
My plan is to do the following
-Install 10.2.0.1
-Install Patch 10.2 .0.4
-Install processors
-Create the database
(-> performance DBUA is not necessary)
I'm wrong or what I need to use DBUA anyway? BTW: the database will be a "new database" (not recreated from a template).
(I think that databases in the models are just restored databases and should be corrected in any case, after the creation).
Best regrards,
MarcusDBUA is used to upgrade the databases after you patched. Since you will create a new database after you apply the hotfix, you don't need to update.
-
Hello
database: oracle 11g
OS: Linux
How to create the database manually? which method is suggestable to the creation of the database (creation of dbca/manual)?
Thank you
Mike.How to create the database manually?
example script:
CREATE DATABASE mynewdb
The USER SYS IDENTIFIED BY sys_password
The USER IDENTIFIED BY system_password SYSTEM
LOGFILE GROUP 1 ('/ u01/app/oracle/oradata/mynewdb/redo01.log') SIZE in the 100M.
GROUP 2 ('/ u01/app/oracle/oradata/mynewdb/redo02.log') SIZE in the 100M.
GROUP 3 ('/ u01/app/oracle/oradata/mynewdb/redo03.log') SIZE 100 M
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXDATAFILES 100
CHARACTER SET US7ASCII
NATIONAL CHARACTER SET AL16UTF16
LOCAL MANAGEMENT MEASURE
DATAFILE ' / u01/app/oracle/oradata/mynewdb/system01.dbf' SIZE 325 M REUSE
SYSAUX DATAFILE ' / u01/app/oracle/oradata/mynewdb/sysaux01.dbf' SIZE 325 M REUSE
DEFAULT TABLESPACE users
DATAFILE ' / u01/app/oracle/oradata/mynewdb/users01.dbf'
SIZE 500M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED
TEMPORARY TABLESPACE tempts1 default
TEMPFILE ' / u01/app/oracle/oradata/mynewdb/temp01.dbf'
RE-USE OF SIZE 20 M
UNDO TABLESPACE undotbs
DATAFILE ' / u01/app/oracle/oradata/mynewdb/undotbs01.dbf'
SIZE 200M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;which method is suggestable to the creation of the database (creation of dbca/manual)?
Manual creation is the best.
If you have no problems of GUI (DBCA) is an easy method.see below link for more information.
http://docs.Oracle.com/CD/B28359_01/server.111/b28310/create003.htmPublished by: KR10822864 on April 17, 2013 05:53
-
Creation of the database - need help
Hi all
I am new to the creation of the database. We have a project starting early next month.
The application acts as an interface to multiple users. A user will have access to its together authorized data.
So, he/she can/don't should not access the data of other users. This is the scenario with all other users.
We hope that we will have the large amount of data specific to each user. We have identified some ways to do this:
1. create separate schemas for each user.
2. create a unique layout and have a main table that will have all the details of the user. On this basis, the data will be created in the tables.
3. do you have a unique layout and create partitions partitions/sup in the tables for each user.
We have identified the above, with a minimum exposure of creation/maintenance of database. So, we do not know who would be the ideal way
Can you please suggest the best thing to do here.
Thanks in advance.If the data structure is exactly the same for all these users and the number of users is high, a better way is to its virtual private database. With DPV, you have a transaction data, but each user will have access to its own lines only.
http://www.Oracle.com/technetwork/database/security/index-088277.html
It is more extensible than the solutions you provided and are very transparent after the initial installation.
-
9i database to register with the 10g rman catalog
I want to know if something prevents a 9i database to record with the catalog rman 10g server?. Any ideas or links to popular docs
My situation
target db - 9204
target rman executable used for backup - 9204
Catalog RMAN - 10204
version of RMAN database - 10204
without auxiliary basis or duplicate at this time.
Can I now register and start taking backups?
Published by: user13296481 on August 18, 2010 12:11The version of the recovery catalog schema must be greater than or equal to the version of RMAN client.
http://download.Oracle.com/docs/CD/B28359_01/backup.111/b28273/compat003.htm
Version of the catalog RMAN - 10.2.0.2
Target - 9.2.0.4 database
You can register now and start the backup.
Concerning
Asif KabirHandle: jsampath
Status level: Beginner
Join date: July 9, 2010
Messages total: 3
Total Questions: * 3 (3 pending) *.-Mark your useful post as correct/helpful and close all threads.
-
DB migration from windows to solaris using RMAN bkp
Hi all
current database version: 10.2.0.3
version of the operating system: windows 2003 server with sp2
proposed database version: 10.2.0.3
version of the OS: solaris 5.8 or higher
We wanted a migration proposal a DB from windows to solaris box. the only available backup is bkp RMAN.
I know we can do using expdp/impdp or transportable of RMAN tablespace.
I would like to know if there is another method to migrate using RMAN bkp between cross-platform.
Thanks in advance.http://www.databasejournal.com/features/Oracle/article.php/3600931/Oracle-10G-transportable-tablespace-enhancements-cross-platform-conversion-capabilities.htm
http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14191/dbxptrn.htm
-
How can I restore and recover the database to a different server using RMAN?
Hello Friend:
How can I restore and recover the database to a different server using RMAN? I want to implement an enviroument which has a different enviroument and different directories.
That's the two servers. different stored different on each server and a single link, a table library where backup set.
I can only restore and recover the database of the Rman command. Could you give me a demo?
Thank youHow can I restore and recover the database to a different server using RMAN? I want to implement an enviroument which has a different enviroument and different directories.
That's the two servers. different stored different on each server and a single link, a table library where backup set.
I can only restore and recover the database of the Rman command. Could you give me a demo?
Check this box
* How to restore Rman backups on a different node when the Directory Structures are different [ID 419137.1] *. -
Database of duplicate and RMAN-20208
I'm trying to duplicate an old backup in an auxiliary database. The backup and the auxiliary are 10g. When I run the following RMAN:
Run {}
I get this error:
until the SNA 41429334.
target database duplicate in auxiliaries;
}
executing command: SET until clause
I try to reproduce from a consistent backup of RMAN (cold) and there was a few OPEN RESETLOGS command applied to the database, as it is a development environment. Is there a way I can work around this problem in the order duplicate. I really want to avoid copying on the existing environment, as is currently under intensive use. Any suggestions, links, answers would be appreciated.
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command set at 2010-05-17 08:54:26
RMAN-06004: error ORACLE recovery catalog database: RMAN-20208: UNTIL CHANGE is before the RESETLOGS change
Thank you
JohnIf you just want to restore the old cold backup, why not just copy the backup of the auxiliary database and restore it without using a DUPLICATE?
-
on the creation of the database in Peoplesoft.
Hello..
I'm trying to create the database using scripts provided by peoplesoft HRMS9.
FYI, I did install Tuxedo 9.1, 9.2, of webserver PeopleTools8.49 and HRMS 9. I use Oracle 11 g 1 material on Oracle Enterprise Linux 5.3
Well, I read on Annex B to Enterprise PeopleTools 8.49 Installation for Oracle and some Web sites.
I modified createdb10.sql, utlspace.sql. I ran these scripts and the database has been created.
Well, when I ran dbowner.sql I got an error. I run as the owner of oracle and login in as sysdba.
SQL > CONNECT PS/PS;
Access to the PRODUCT_USER_PROFILE error
WARNING: Product user profile information has not loaded!
You may need to run PUPBLD. SQL as SYSTEM
Connected.
so I ran PUPBLD. SQL first. And then I run dbowner.sql. But the error still occurred. I read of this http://psst0101.wordpress.com/2009/01/21/step-by-step-virtual-ps-install-database-creation/
Any suggestions please, because I read in http://gasparotto.blogspot.com/ he ran not pupbld.sql but managed.
Anyone has same experience... ??What is the default tablespace of the PS?
Please do the following and post the result:select * from dba_users where username='PS';
Anyway, do not worry, the create session privilege is revoked in p.
Finally, you can try to run this script (PUPBLD. SQL) in the SYSTEM, not as a SYS.Nicolas.
-
Error in database creating duplicate in the same server...
Hello
I am getting error after creating duplicate database
DB version 10.2.0.4 =
$ rman target sys/sys@test nocatalog auxiliary.
Recovery Manager: Release 10.2.0.4.0 - Production on Mon Sep 28 15:13:32 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: TEST (DBID = 1702666620, is not open)
using the control file of the target instead of recovery catalog database
connected to the auxiliary database: CLNTEST (unassembled)
RMAN > DATABASE of TARGET duplicate to "CLNTEST."
Starting in double Db to 28 / SEP / 09
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid = 156 devtype = DISK
content of Script memory:
{
until the SNA 597629461.
the value of newname for datafile 1 to
"/ u01/data_new/clonetest/system01.dbf";
the value of newname for datafile 2 to
"/ u01/data_new/clonetest/undotbs01.dbf";
the value of newname for datafile 3 to
"/ u01/data_new/clonetest/sysaux01.dbf";
the value of newname for datafile 4 to
"/ u01/data_new/clonetest/users01.dbf";
the value of newname for datafile 5 to
"/ u01/data_new/clonetest/example01.dbf";
the value of newname for datafile 6 to
"/ u01/data_new/clonetest/undotbs02.dbf";
the value of newname for datafile 7 to
"/ u01/data_new/clonetest/alweb1.dbf";
the value of newname for datafile 8 to
"/ u01/data_new/clonetest/indx1.dbf";
restoration
see readonly
clone database
;
}
execution of Script memory
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
From restoration to 28-SEP-09
using the ORA_AUX_DISK_1 channel
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of Db in dual at 2009-09-28 15:13:40
RMAN-03015: an error has occurred in the script stored memory Script
RMAN-06026: some targets not found - abandonment of restoration
RMAN-06023: no backup or copy of datafile 8 found to restore
RMAN-06023: no backup or copy of 7 found to restore
RMAN-06023: no backup or copy of datafile 6 to restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of the file 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
RMAN > overlap backupset datafile 1;
using the control file of the target instead of recovery catalog database
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid = 154 devtype = DISK
"" element of verified backup: turned out to be "AVAILABLE"
backup handle = piece / u01/rmanbkp/db_prd0akqcnoh_1_1 recid = stamp 10 = 698769169
"" element of verified backup: turned out to be "AVAILABLE"
backup handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid = piece stamp 17 = 698771444
Cut 2 objects
RMAN > overlap backupset datafile 2;
using channel ORA_DISK_1
"" element of verified backup: turned out to be "AVAILABLE"
backup handle = piece / u01/rmanbkp/db_prd0akqcnoh_1_1 recid = stamp 10 = 698769169
"" element of verified backup: turned out to be "AVAILABLE"
backup handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid = piece stamp 17 = 698771444
Cut 2 objects
RMAN > overlap backupset datafile 3.
using channel ORA_DISK_1
"" element of verified backup: turned out to be "AVAILABLE"
backup handle = piece / u01/rmanbkp/db_prd0akqcnoh_1_1 recid = stamp 10 = 698769169
"" element of verified backup: turned out to be "AVAILABLE"
backup handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid = piece stamp 17 = 698771444
Cut 2 objects
RMAN > overlap backupset datafile 4;
using channel ORA_DISK_1
"" element of verified backup: turned out to be "AVAILABLE"
backup handle = piece / u01/rmanbkp/db_prd0akqcnoh_1_1 recid = stamp 10 = 698769169
"" element of verified backup: turned out to be "AVAILABLE"
backup handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid = piece stamp 17 = 698771444
Cut 2 objects
RMAN > overlap backupset datafile 5;
using channel ORA_DISK_1
"" element of verified backup: turned out to be "AVAILABLE"
backup handle = piece / u01/rmanbkp/db_prd0akqcnoh_1_1 recid = stamp 10 = 698769169
"" element of verified backup: turned out to be "AVAILABLE"
backup handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid = piece stamp 17 = 698771444
Cut 2 objects
RMAN > overlap datafile backupset 6;
using channel ORA_DISK_1
"" element of verified backup: turned out to be "AVAILABLE"
backup handle = piece / u01/rmanbkp/db_prd0akqcnoh_1_1 recid = stamp 10 = 698769169
"" element of verified backup: turned out to be "AVAILABLE"
backup handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid = piece stamp 17 = 698771444
Cut 2 objects
RMAN > overlap backupset datafile 7;
using channel ORA_DISK_1
"" element of verified backup: turned out to be "AVAILABLE"
backup handle = piece / u01/rmanbkp/db_prd0akqcnoh_1_1 recid = stamp 10 = 698769169
"" element of verified backup: turned out to be "AVAILABLE"
backup handle=/u02/data/flash_recovery_area/BINGO/backupset/2009_09_28/o1_mf_nnndf_TAG20090928T151044_5d114x0h_.bkp recid = piece stamp 17 = 698771444
Cut 2 objects
Thank youHello
RMAN from checking if the data target files share the same names that duplicate files are used
but I use different directory
/ u01/data_new/clonetest of the duplicate database
/ u01/data/BINGO database target
I think that, when you use no nofilenamecheck clause, RMAN assumes that there is a copy of the backup file also exist at the location of backup of the clone, and in this case there is no backup file it is therefore failed. If you could have copied the location of primary backup file to clone is then probably you could not get the error.
Kind regards.
-
How can I get rid of duplicates from folder?
I have a HP Win 7 system that I bought in November 2009. I moved all the backed up files, I created a Vista system and saved on an external hard drive and put them in the appropriate in Win 7 folders. Along the way, about a month or two ago, the 'My music' folder decided to duplicate himself in the folder "my pictures." Anything to be added or removed from rehearsals in the other folder as well. I want to delete the one in "My pictures", such that it caused all kinds of freeze ups when you do something in there, caused by the activation of Windows Media Player to go online and search for updates file. This makes any process to become unusable as all the system waits for WMP let go of his prey. It must be the folder the file images who created this music. If I download a clean folder, empty, newly created, the problem does occur.
Also, when I try to delete one or the other, or move them, it gives a message stating: "the action cannot be performed because the file or the file is open in another program. Close the folder or file and try again. »
Sometimes even if the Task Manager shows only one of them open at the time of the attempt to remove.
Hello
Recent changes on your computer?
Try the process for my music and my pictures folders (Windows 7 it's just music and images) below.
1. right click on the folder and select Properties.
2. click the default button.
3. click on the OK button.Also to run a scan for virus/malware online on the computer.
http://OneCare.live.com/site/en-us/default.htm
http://www.Microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=ad724ae0-e72d-4f54-9ab3-75b8eb148356
Let us know if it works.Thanks and greetings
Umesh P - Microsoft technical support.Visit our Microsoft answers feedback Forum and let us know what you think.
-
Remove duplicates from the oracle table using 2 columns
Hello
I need to remove the duplicates of an oracle table based on 2 columns in the table.i tried to remove duplicates using the join, but get the error like sql error ora-00933
Thank you
Hello
Here's one way:
DELETE FROM table_x
WHERE ROWID NOT IN)
SELECT MIN (ROWID)
FROM table_x
Col_1, col_2
);
I hope that answers your question.
If this isn't the case, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements), and the results you want from this data.
In the case of a DML operation (for example, REMOVE) the sample data should show what look like the paintings before the DML, and results will be the content of the or the tables changed after the DML.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum: Re: 2. How can I ask a question on the forums?
-
How to remove duplicates from comma separated string
Hi allI have an obligation to remove duplicates of string separated by commas:
Some examples of code (real data can be in millions)
{code}
create table test_dup_del (num number (10), dup_val varchar2 (100));
insert into test_dup_del values (1234, '1, 2, 3, 4, 3, 1');
insert into test_dup_del values (4567,'1, 2, 2, 4, 4, 1');
insert into test_dup_del values (7894,'1, 2, 1, 3, 3, 1');
insert into test_dup_del values (1478, '1, 2, 4, 4, 3, 2');
insert into test_dup_del values (2589, '1, 2, 1, 2, 1, 2');
commit;(code}
my output would be:
1234, 1, 2, 3, 4'
4567, '1, 2, 4'
7894, '1, 2, 3'
1478, 1, 2, 3, 4'
2589, 1, 2'
Thank you
Rachid
If there is a real need to split the data so that it could be corrected (before split to store correctly... Tip tip!) ...
SQL > ed
A written file afiedt.buf1 with test_dup_del (num, dup_val) as)
2 Select 1234, 1, 2, 3, 4, 3, 1' Union double all the
3 select 4567, 1, 2, 2, 4, 4, 1' Union double all the
4 Select 7894, 1, 2, 1, 3, 3, 1' Union double all the
5 Select 1478, 1, 2, 4, 4, 3, 2' of all the double union
6 select 2589, 1, 2, 1, 2, 1, 2' of the double
7 )
8 --
9. end of test data
10-
11, split as)
12. Select num
13, trim (regexp_substr(dup_val,'[^,]+',1,level)) as val
14 from test_dup_del
15 connect by num = num prior
16 and level<=>=>
17 and prior sys_guid() is not null
18 )
19, dist in (select distinct)
20 num
21 ,val
22 split
23 )
24 select num
25, listagg (val, ',') within the Group (order by val) as vals
dist 26
27 * group by num
SQL > /.
NUM OF VALS
---------- ------------------------------
1234 1,2,3,4
1478 1,2,3,4
2589 1.2
4567 1,2,4
7894 1,2,35 selected lines.
-
remove duplicates from CC library?
I've been creating a CC library for all of my active work by adding all styles of every time I finished a new document. I certainly have not been very careful and have now a bunch of duplicate styles. I waited an easy solution, but am not finding a way to easily remove duplicate styles. Am I missing something?
You can select from the library and just select the icon to delete or right-click select Remove
Maybe you are looking for
-
A lot of problems with my iPhone 5.
My iPhone 5, who had worked perfectly well this morning, (with the exception of the switch that has not worked for a long time) was rendered almost completely useless. For some reason, I can't do anything that requires the use of internet, as: -Regis
-
My office has developed a problem in which she stops 10-15 minutes after a cold start. I have a Pavilion Elite HPE 450 t running Windows 7 64. I tried dusting and open the box, but it keeps happenings. In addition, my video card, an NVIDIA GeForce31
-
LaserJet Pro 400 - M475dw, not recognizing USB drive-resolved
I've been scanning to .pdf on a USB for about 6 months on my LaserJet Pro 400 - M475dw. All of a sudden, it says "Insert USB Flash drive" whenever I try to scan, even if there is a pre-installed flash drive. I tried all 3 USB keys I've already used,
-
MP3 player and KB 928439 fails to install - error code 80070005
Hello I recently had a problem with Vista Home Premium SP2 suddenly refuse to recognize my Creative Zen MP3 player even if the player is recharged when the unit is installed. When I plug the Zen to a USB port it says "install the driver software for
-
Workflow for 5.1 surround DVD or Blu Ray.
Please help, not having no success with that. 5.1 timeline created in PrP.exported and then imported in yet.Either I get a message saying that this project does support more the two lanes. OR Burns dvd and there is no surround.I don't know that I mus