Home » RDBMS Server » Server Utilities » duplicate values
duplicate values [message #71805] Wed, 15 January 2003 13:30 Go to next message
Pratibha
Messages: 29
Registered: November 2001
Junior Member
Hai,

My problem is

I have one table contains one column.I have duplicate records in this table.
I want to delete duplicate records.How can I do this

Thank you
Re: duplicate values [message #71807 is a reply to message #71805] Wed, 15 January 2003 13:36 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
SQL> select * from dept;

    DEPTNO DNAME          LOC
---------- -------------- -------------
        10 ACCOUNTING     NEW YORK
        20 RESEARCH       DALLAS
        30 SALES          CHICAGO
        40 OPERATIONS     BOSTON
        10 ACCOUNTING     NEW YORK
        20 RESEARCH       DALLAS
        30 SALES          CHICAGO
        40 OPERATIONS     BOSTON

8 rows selected.
SQL> ed
Wrote file afiedt.buf

  1  delete from dept a
  2  WHERE ROWID > (
  3             SELECT  min(rowid) FROM dept B
  4*            WHERE A.deptno = B.deptno)
SQL> /

4 rows deleted.

SQL> select * from dept;

    DEPTNO DNAME          LOC
---------- -------------- -------------
        10 ACCOUNTING     NEW YORK
        20 RESEARCH       DALLAS
        30 SALES          CHICAGO
        40 OPERATIONS     BOSTON

Re: duplicate values [message #71809 is a reply to message #71805] Wed, 15 January 2003 13:40 Go to previous messageGo to next message
Pratibha
Messages: 29
Registered: November 2001
Junior Member
If I have only on column dname,how can I delete

thank u
Re: duplicate values [message #71818 is a reply to message #71805] Wed, 15 January 2003 16:14 Go to previous messageGo to next message
Pratibha
Messages: 29
Registered: November 2001
Junior Member
Thank you

I have some mail id's in one file,duplicate mailids are there in that.
If I want to delete duplicate values,should I first create table?
If I have thousands of mailIds ,How can i delete

thank you
informatica [message #71825 is a reply to message #71805] Thu, 16 January 2003 14:45 Go to previous messageGo to next message
Pratibha
Messages: 29
Registered: November 2001
Junior Member
Hai

I am trying to create a repository in in powercenter client.

It gives failed to log on server.

when creating repository,It asks connect native string.

what is it?where can i find it?

thank you
Re: informatica [message #71826 is a reply to message #71805] Thu, 16 January 2003 15:20 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
I have to idea about which tool you are speaking about.
IF you are trying to connect to oracle database,
and it is asking some kind of native-connect-string,
most probably it is goint to be the regular oracle connect string...ie..your tnsnames.ora entry (the same use to connect to the database from sqlplus client)
Re: informatica [message #71840 is a reply to message #71805] Mon, 20 January 2003 10:58 Go to previous messageGo to next message
Pratibha
Messages: 29
Registered: November 2001
Junior Member
Thank you

In informatica,I am trying to startup the server.It gives error like ?It didn't start due to log on failure.

When I configure server,What are the importants to fill up

Thanks in advance
sql loader [message #71841 is a reply to message #71805] Mon, 20 January 2003 16:07 Go to previous messageGo to next message
Pratibha
Messages: 29
Registered: November 2001
Junior Member
Hai

From where can I download sql loader?

how to load the textfile into a table in database?

please give me small example from how to download the sql loader to load text file into a table .

please with small example.

Thanks for your time
Re: sql loader [message #71842 is a reply to message #71805] Mon, 20 January 2003 16:54 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
sql*loader is available along with oracle installation
(server and client).
Tons of examples are available with oracle docs.
one example
another
a quick start
Re: informatica [message #71873 is a reply to message #71805] Thu, 23 January 2003 15:27 Go to previous message
Abid Khan
Messages: 3
Registered: April 2002
Junior Member
Just came across this question today.

The connect string is the string you use to connect to oracle i.e. name of the entry in tnsnames.ora file.
eg.

oracle_on_scup=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=205.181.21.97)
(PORT=1521))
(CONNECT_DATA=(SID=EN73)))

Connect string in this case is : oracle_on_scup

Also remember to use the correct user and password for this connection.

Contact me on my email in case you still have problems.

HTH.
Previous Topic: Rollback
Next Topic: Importing data into oracle from Foxpro 2.5 database
Goto Forum:
  


Current Time: Wed May 15 18:09:33 CDT 2024