Is there a way to find if PK was created with alter or index+alter?
Is there a way to identify whether a primary key (PK) was created by one or the other method:
Method 1:
alter table tab1 add constraint tab1_pk primary key ( pk );
Method2:
create unique index tab2_pk on tab2 ( pk );
alter table tab2 add constraint tab2_pk primary key ( pk );
When you drop or disable the PK, then in method 1 the corresponding index is also dropped, but in method 2 the index is not dropped. Before a bulk load, I'd like to know if I have to issue another statement to drop the index in method 2
Thanks
If you really want to drop the index just use the [DROP INDEX|http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3001.htm#i2103845] clause when issuing the ALTER TABLE command.
Sample below:
SQL> CREATE TABLE TEST (ID NUMBER);
Table created.
SQL> CREATE UNIQUE INDEX TEST_UNQ_IDX ON TEST(ID);
Index created.
SQL> ALTER TABLE TEST ADD CONSTRAINT TEST_PK PRIMARY KEY (ID);
Table altered.
SQL> ALTER TABLE TEST DROP CONSTRAINT TEST_PK DROP INDEX;
Table altered.
SQL> SELECT * FROM USER_INDEXES WHERE INDEX_NAME='TEST_UNQ_INDEX';
no rows selectedHTH!
Similar Messages
-
Is there any way to find out wn was a table deleted apart from using audit
Is there any way to find out wn was a table deleted apart from using audit
Oracle version 9.2.0.7SQL> SHOW USER
USER is "SCOTT"
SQL> CREATE TABLE test_delete AS SELECT * FROM emp;
Table created.
SQL> DELETE FROM test_delete;
14 rows deleted.
SQL> COMMIT;
Commit complete.
SQL> conn sys@orclsb as sysdba
Enter password: ******
Connected.
SQL> ALTER SESSION SET nls_date_format='DD-MON-RRRR HH24:MI:SS';
Session altered.
SQL> BEGIN
2 DBMS_LOGMNR.START_LOGMNR (
3 starttime => '02-FEB-2011 17:51:00',
4 endtime => '02-FEB-2011 17:54:00',
5 options => dbms_logmnr.DICT_FROM_ONLINE_CATALOG+
6 dbms_logmnr.continuous_mine +
7 dbms_logmnr.no_sql_delimiter +
8 dbms_logmnr.print_pretty_sql
9 );
10 END;
11 /
PL/SQL procedure successfully completed.
SQL> set line 10000
SQL> SELECT scn ,timestamp
2 ,commit_timestamp, username
3 FROM v$logmnr_contents
4 WHERE
5 username = 'SCOTT'
6 AND TABLE_NAME='TEST_DELETE';
SCN TIMESTAMP COMMIT_TIMESTAMP USERNAME
2309736 02-FEB-2011 17:53:20 SCOTT
2309739 02-FEB-2011 17:53:20 SCOTT
2309769 02-FEB-2011 17:53:59 SCOTT
2309774 02-FEB-2011 17:53:59 SCOTT
2309774 02-FEB-2011 17:53:59 SCOTT
2309774 02-FEB-2011 17:53:59 SCOTT
2309774 02-FEB-2011 17:53:59 SCOTT
2309774 02-FEB-2011 17:53:59 SCOTT
2309774 02-FEB-2011 17:53:59 SCOTT
2309774 02-FEB-2011 17:53:59 SCOTT
2309774 02-FEB-2011 17:53:59 SCOTT
SCN TIMESTAMP COMMIT_TIMESTAMP USERNAME
2309774 02-FEB-2011 17:53:59 SCOTT
2309774 02-FEB-2011 17:53:59 SCOTT
2309774 02-FEB-2011 17:53:59 SCOTT
2309774 02-FEB-2011 17:53:59 SCOTT
2309774 02-FEB-2011 17:53:59 SCOTT
2309774 02-FEB-2011 17:53:59 SCOTT
17 rows selected.
SQL> -
Is there any way to find all songs not associated with a playlist?
I have thousands of songs - many of which were never put into a playlist. Is there a script or any other way to easily find all the songs that are not in a playlist?
This yields a text file: http://dougscripts.com/itunes/scripts/ss.php?sp=notinanyplaylist
This yields a playlist: http://dougscripts.com/itunes/scripts/ss.php?sp=notinanyplaylistplaylist -
In After Effects, there is a smoother tool (panel) which removes a lot of in-between keyframes you don't need. Is there a similar tool (script) in Premiere? It would make it a lot easier to make point adjustments if you could get rid of the 20 extra keyframes made with the write keyframe.
No, there's not a way to do that, but it's a good feature request. You can submit feature requests here:
http://www.adobe.com/go/wish -
Hi Guys,
I'm a bit new to this discussion group thing although I've been using Macintosh computers for many years (showing my age).
I handed my MacBook Pro to be repaired at an authorised apple service centre. When I handed it in they said they needed to keep hold of it to run some diagnostics and requested my password. I've owned various models of mac for the the past 17 years and this is the first hardware problem I have encountered, hence I have never bothered to set up user accounts.
As I live in quite a remote part of Sweden I am paranoid that some untrusted technician is going to make a copy of my music (11,000 tracks) or share some of my personal information (scanned copies of my birth certificate, passport, certificates, photos, etc.) on the web. Is there a way of finding out what activity has taken place whilst they've had it in their possession?
I appreciate any advice you guys can offer.
Thanks!
PS: I've already thought about the 'recently opened' menu and The machine in question is a MacBook Pro 17" (2011) running OS X 10.6.8 (need Rosetta).I am paranoid that some untrusted technician is going to make a copy of my music (11,000 tracks) or share some of my personal information (scanned copies of my birth certificate, passport, certificates, photos, etc.) on the web.
If you put your info into the computer and hand it to another, you have to assume they will copy everything.
Why are you putting scanned copies of valuable identity information into a computer than can be hacked, stolen, lost or compromised by a dirty tech?
Have you lost your mind?
Is there a way of finding out what activity has taken place whilst they've had it in their possession?
No. The tech would just deny it if he did, or tell the truth which the answer would be "NO" in either case.
The employer won't ask that sort of questions without solid proof, less they make a enemy of the employee and/or risk being sued for defamation of character.
It's not like they bother to have a team of people watching over his shoulder that he doesn't stick a USB thumb drive of your data into his pocket to take home.
I am paranoid that some untrusted technician is going to make a copy of my music (11,000 tracks)
If it's iTunes music, it has your personal ID embedded into the song files. Most IT techs know this though.
I appreciate any advice you guys can offer.
Too late now, all you can do is not worry about it.
Take your personal info out of the machine and if you need it, burn cd/dvd copies, a few USB thumb drives, Iron Keys or self encrypting external storage drives with key and/or keypad. -
I just upgraded my iPad from 4.3.3 to the newest - I think 6.1.3. I cannot find my photos and videos. I tried a restore, but after 3 hours, it's timing out. Pardon my ignorance on asking this question; but is there a way to find my photos? I do nto care about anythign else.
Here are the steps I though I took this morning:
Backup iPad
Connect to iTunes and downlaod newest version of iTunes and then newest iOS
restart Vista Laptop
upgrade to newest iOS
I knew somethign was wrong when it took about 6 hours to upgrade the iPad
at the end it errored with this message error (-50), but the upgrade worked
I was expecting to see all my photos but didn't see them
I have tried a restore to a back up 2 times. The first time took 3 hours and just sort of timed out - it kept saying that there was an hour to go
I tried it again 2 hours ago and same message.
They are very valuable to me and so now I am panicking
Your help is much appreciatedHi Eric Ferguson,
Thanks for using Apple Support Communities.
For troubleshooting on this, take a look at this article:
iTunes: Specific update-and-restore error messages and advanced troubleshooting
http://support.apple.com/kb/ts3694
Error 13, 14, 35 and 50 (or -50)
These errors are typically resolved by performing one or more of the steps listed below:
Perform USB isolation troubleshooting, including trying a different USB port directly on the computer. See the advanced steps below for USB troubleshooting.
Put a USB 2.0 hub between the device and the computer.
Try a different USB 30-pin dock-connector cable.
Eliminate third-party security software conflicts.
There may be third-party software installed that modifies your default packet size in Windows by inserting one or more TcpWindowSize entries into your registry. Your default packet size being set incorrectly can cause this error. Contact the manufacturer of the software that installed the packet-size modification for assistance. Or, follow this article by Microsoft: How to reset Internet Protocol (TCP/IP) to reset the packet size back to the default for Windows.
Connect your computer directly to your Internet source, bypassing any routers, hubs, or switches. You may need to restart your computer and modem to get online.
Try to restore from another known-good computer and network.
Best of luck,
Mario -
Is there any way to find number of addresses in to and cc list before fetch
Hi,
I am fetchig mails using IMAP.
I want to fetch from,to cc addresses for each mail.
But i foung a mail in my account having 35690 email addresses in to list.
So fetching all these addresses is not worth full for me.
So is there any way to find how many addresses are there in to and cc list before actually fetching them?
Thanks in advance.
-Prashanth.No.
-
I imported 100 photos from my camera (Canon) into iphoto. The importation went well, and when I was watching the photos, suddenly iphoto crashed. I restarted iphoto and realized that the photos had disapered. The events are availbble into iphoto but they are empty, the photos have dispeared. I can not believe they disapeared as they have been imported and read once, they must be hidden somewhere on the disk? Is there a way to find where they are?
Assuning you're running iPhoto 9 or later try the following:
1 - launch iPhoto with the Command+Option keys held down to open the First Aid window.
2 - Run Option #4, Rebuild Database.
OT -
What should I do if my iPod has been stolen and when I checked my support profile and entered my serial # and I received a message that the serial # had been registered to another Apple ID account? Is there a way to find out the Apple ID that it was registered to? I have already checked find my iPod and it shows my iPod is offline. I have already filed a police report.
No, sorry, there is no way you can get that information. The police perhaps could, but it would probably require a court order and it's unlikely the police will go to those lengths unless they have reason to believe that this theft was not an isolated instance and hence worth more of their time than the single theft of an iPod.
Even if they got the ID, it may well just be yours. Apple's registration database often contains such errors; I get the same message for some of my devices when I know I registered them to my Apple ID and the devices are all still right here.
Regards. -
Hello everyone,
I've lost my iPhone 5s yesterday in a party. The Find my iPhone app is not logged in with my iCloud account in the phone. Is there any way to find the phone? I'm really lost in this matter. Please help, if you can!
Thank you.Thanks for taking the time to respond!!
I didn't think so, but was hoping this was a time, that someone knew something that I didn't. -
HT4623 Is there any way to find a lost iPhone once the phone's battery has expired?
I have lost my iPhone(4)and the battery is dead. I have the "locate device application", however, I know the battery is dead. To my knowledge, once the battery has expired, it cannot be retrieved using the "lost device/find my device" application.?? Is this correct? If so, is there another way to find this lost iPhone?
Thanks for taking the time to respond!!
I didn't think so, but was hoping this was a time, that someone knew something that I didn't. -
Is there any way to find a lost phone if the battery is dead?
Is there any way to find a lost phone if the battery is dead?
No there is no way mate. Sorry.
-
I had to restore from backup to a new hard drive, and only have part of my Adobe Photoshop installation. Is there a way to find the serial number in these files so that I can reinstall the full version? I have only part of the documentation so this is the best way I see to get the full version back.
Hello brad,
you did purchase your product from these firms like Amazon, so you didn't get a serial number, only a code with which you can request a serial number from Adobe. Please have a look at http://helpx.adobe.com/x-productkb/global/find-serial-number.html. (Start here: How did you purchase your product?)
The following part, so I just see at least, ceased to exist on my Adobe website, everything takes place in the link from above. I leave it as an info yet, it might still fit for you. For this purpose, please click your way through to your Adobe Store and find the button "Get Serial Number". Fill in the form and after a while you will get the real serial number.
Additionally you should have a look at Adobe's database, to see what's stored/saved about your accounts. Here you will find general infos about your Adobe Account.
On the other hand, if necessary and for further questions click through http://helpx.adobe.com/contact.html and if "open" please use the chat, I for may part had the best experiences. I quote from Adobe's employee Preran: The chat button is activated as soon as there is an agent available to help.
Hans-Günter -
Hi,
I am currently in the middle of setting up SharePoint sites and have come across many lists that have not been updated for a while. I am wondering is there a way of finding out what lists are being used and what lists aren't being used for example I would
like to find out if a list is being used for a look up.
Josh
J BurnsI don't think there any such option available OOTB, however you can use PowerShell to get such information e.g.
$web = Get-SPWeb http://localhost
$f = $web.Lists["Contact"].Fields["Customer"]
$f.ListsFieldUsedIn()
$web.Dispose()
Check this link: http://sharepoint.stackexchange.com/questions/45574/is-a-list-being-used-as-a-lookup-for-some-web-part-in-the-site-collection
Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
INSQLSERVER.COM
Mohammad Nizamuddin -
Is there a way to find the list of PCs and iDevices connected to my Itunes Match?
Is there a way to find the list of PCs and iDevices connected to my Itunes Match?
Is there a way to find the list of PCs and iDevices connected to my Itunes Match?
Maybe you are looking for
-
Home Sharing between Mac and PC
So I have Home Sharing enabled on both my Mac and PC, and signed into both with the same apple ID. From my pc, i have installed the latest version of Itunes, and on my mac I have the latest version of Itunes. I can access my library on my mac from th
-
First off, when firefox trys to auto update, it fails. It tells me to try and download the new version from mozilla's site. When I try to download the new version I get this: (C:\Users\John\AppData\Local\Temp could not be saved, because you cannot ch
-
Hi, In SRM 5.0 workflow WS14000133- n level approval of SC at header level, Is there a feature by which we can have parallel approval, but ensure that SC goes to next level only when all the parallel approvers have approved the cart? Currently in our
-
I'm using the function module SO_DOCUMENT_SEND_API1 and after that I'm using this command. SUBMIT rsconn01 WITH mode = 'INT' WITH output = 'X' AND RETURN. But it is giving Dump. Says Error when calling a remote function call. RFC_GET4 I'm getti
-
How are additional sheets used in the view responses?
I would like to find out how others are using the additional sheets in view respones? are you able to send certain answers to the form to specific sheets? If so I would be very excited... im just not sure how people are using them and if im missing