Dropping database queue from a databsae user
Hi
I want to drop a user chealth1 from our databse
when i run the command
drop user chealth1 cascade - I am getting error
SQL> drop user chealth1 cascade;
drop user chealth1 cascade
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables
all the queue from dba_queue belong to SYS user.
how can i do this. when i run command
EXEC dbms_aqadm.stop_queue('ALERT_QUE' ) i am getting error
SQL> EXEC dbms_aqadm.stop_queue('ALERT_QUE' )
BEGIN dbms_aqadm.stop_queue('ALERT_QUE' ); END;
ERROR at line 1:
ORA-24010: QUEUE CHEALTH1.ALERT_QUE does not exist
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 4354
ORA-06512: at "SYS.DBMS_AQADM", line 240
ORA-06512: at line 1
any suggestions
kedar
How did you know the queue name was ALERT_QUE ?
what is the output of :
SQL> select name, queue_table from user_queues ;?
Similar Messages
-
Can't open database homepage from different windows-user
Hello!
I've lost my user in which i installed Oracle Express 10 database. Now I'm using a different user-account (also with Admin rights) but I can't open the database homepage or log-in to sqlplus. I get the insufficient rights error. Which rights should i set and where?
ThanksI use oracle 9i and run on Linux Advance Server 3.0...
i can log in via sqlplus or oem by "sys" and "any password" , but the instance status in oem is "Shutdown". when i attempt to "Open" that instance i got the error message above...
why i can login as sys and any incorrect passwd?
what else need to configure in order to open database?
Thank for your help...
iKhmer -
Hi All,
I am unable to drop database user and getting the folllowing error:
" must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables "
I find 3 table with AQ prefix in the schema but unable to drop these table even by using "sys" user.
Any idea how can I do that ?
Regards,Hi,
select object_name,object_type from dba_objects where owner='USERNAME' and object_name like '%AQ%';TO drop the queue table, login as the owner and
exec DBMS_AQADM.DROP_QUEUE_TABLE(queue_table=>'PASTE_THE_OBJECT_NAME_FROM_ABOVE',force =>TRUE);Anand -
Dynamic Drop Down Menu from an Access Database
Hello Everyone,
I am user Adobe Designer 7 to create a fillable PDF, and I would like to get the options for a drop down menu from my MS Access database. Basically I would like to populate the drop down menu with the names in the Access database. There i Have a table called PhoneNumbers and it contains the names of all the people I want to appear in the drop down menu that I just created.
This is what I did:
I created a drop down menu and then I clicked on Object > Binding > under "Default Binding (Open, Save, Submit)" choose "New Data Connection"
then connect to the database using a fileDSN. I opened the table where with the "names" column (PhoneNumbers)
and under the "Query," option, I wrote:
select * from PhoneNumbers
Then it gave me all the fields from the table and I dragged the "Last name" field over the drop down menu. I will need to find a way to get the "First Name" field to join the Last Name field to create one name that looks like this: Hill, Angie
The problem is that even though it shows the name from the Access database, it does not give me a list of all the names when I open the form in Reader 7...
No matter how much I click that drop down arrow, the name does not change...
It's almost as if it gets to the databse and gets the data from the database, but it cannot loop through it...
It's almost as if it's missing the code to loop through it...
Why is this? Any ideas how to fix it so it gives me a list of ALL the names, when I click on the drop down button?
After that, how can I add the first name to it?
The form would look like this:
Angie H. 202 641 2055
Right now it does look like that, but I cannot change to another name when I click the drop down menu. For the code to be working when I change to another name, the phone number also changes to the phone number of that person:
Barry S. 703 555 1258
The name is in a drop down menu, the phone number is in a textbox.
Can you help me with this?ANGELA,<br /><br />Well, the good new is that you are not far off...What you need is to insert the following code using Java Script under the Initialize function. Just replace the Connection name, The Hidden Value, and the Display Text with your information. This is a function is 8.0 but will work with 7.0<br /><br />/* This dropdown list object will populate two columns with data from a data connection.<br /><br /> sDataConnectionName - name of the data connection to get the data from. Note the data connection will appear in the Data View.<br /> sColHiddenValue - this is the hidden value column of the dropdown. Specify the table column name used for populating.<br /> sColDisplayText - this is the display text column of the dropdown. Specify the table column name used for populating.<br /><br /> These variables must be assigned for this script to run correctly. Replace <value> with the correct value.<br />*/ <br /><br />var sDataConnectionName = "DataConnection"; // example - var sDataConnectionName = "MyDataConnection";<br />var sColHiddenValue = "CAT_Corp_SeqNo"; // example - var sColHiddenValue = "MyIndexValue";<br />var sColDisplayText = "CAT_Corporate"; // example - var sColDisplayText = "MyDescription"<br /><br />// Search for sourceSet node which matchs the DataConnection name<br />var nIndex = 0;<br />while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)<br /> {<br /> nIndex++;<br /> }<br /><br />var oDB = xfa.sourceSet.nodes.item(nIndex);<br />oDB.open();<br />oDB.first();<br /><br />// Search node with the class name "command"<br />var nDBIndex = 0;<br />while(oDB.nodes.item(nDBIndex).className != "command")<br /> {<br /> nDBIndex++;<br /> }<br /><br />// Backup the original settings before assigning BOF and EOF to stay<br />var sBOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");<br />var sEOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");<br /><br />oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF", "bofAction");<br />oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF", "eofAction");<br /><br />// Clear the list<br />this.clearItems();<br /><br />// Search for the record node with the matching Data Connection name<br />nIndex = 0;<br />while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)<br /> {<br /> nIndex++;<br /> }<br />var oRecord = xfa.record.nodes.item(nIndex);<br /><br />// Find the value node<br />var oValueNode = null;<br />var oTextNode = null;<br />for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)<br /> {<br /> if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)<br /> {<br /> oValueNode = oRecord.nodes.item(nColIndex);<br /> }<br /> else if(oRecord.nodes.item(nColIndex).name == sColDisplayText)<br /> {<br /> oTextNode = oRecord.nodes.item(nColIndex);<br /> }<br />}<br /><br />while(!oDB.isEOF())<br />{<br /> this.addItem(oTextNode.value, oValueNode.value);<br /> oDB.next();<br />}<br /><br />// Restore the original settings<br />oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup, "bofAction");<br />oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup, "eofAction");<br /><br />// Close connection<br />oDB.close();
-
Help needed with populating a drop-down list from an Access Database
Topic
data drop-down list
Jason Murthy - 11:39am Feb 14, 2005 Pacific
Hello,
I am trying to use the data drop-down list from the custom library. I enter the name of my data connection and the other 2 variables in quotes when they are initialized, just like the example says to, but it still doesn't work. Anyone have any thoughts?
Thanks,
Jason
Reply To This Discussion | Back to Topic List | Bookmark | Change Subscription
To start a NEW discussion click on the Back to Topic List link and select Add Topic.
If you are in an archive forum please go up to the main topic list (archives are read only).
Messages 11 messages. Displaying 10 through 11.
First Previous Next Last Show All Messages
Denzil White - 5:46am Jul 28, 05 PST (#10 of 11)
Oh and before you say anything more I have also tried changing it from Javascript to the FormCalc, and no diff, maybe I am more stupid than I realised, heh,heh
Post Reply | Bookmark
Henk Pisuisse - 12:06am Aug 9, 05 PST (#11 of 11)
I am having trouble (sleepless nights) with populating a drop-down list from an Access Database. The result is: I only get the first record from the data connection. So the connection works but I cannot go through the other records. Maybe there is an other way to do this.
I am trying to selectively fill a form with data from an MS-access database.
I hope someone can help me.
[email protected]
The Netherlands (small country in Europe)If you email the access DB and the form to [email protected], I will try to take a look at it for you.
-
Not able to connect database from another os user using externally?
Hi,
I want to connect database from another os user. i am able to connect database from oracle externally. but not able to connect different OS user.
As ORACLE User:
[oracle@test1 admin]$ sqlplus /
SQL*Plus: Release 11.2.0.2.0 Production on Mon Jan 16 19:41:57 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
Non ORACLE user:
[sample@test1 ~]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0.2/
[sample@test1 ~]$ export ORACLE_SID=rman
[sample@test1 ~]$ export PATH=$ORACLE_HOME/bin:$PATH
[sample@test1 ~]$ sqlplus /
SQL*Plus: Release 11.2.0.2.0 Production on Mon Jan 16 19:37:42 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0
Enter user-name:
ThanksYou didn't install Oracle correctly, especially you didn't run the root.sh and rootpre.sh scripts.
If you would have read the error message at all, and researched it, you would have known this.
Regrettably however you decided to ignore Forums Etiquette and to abuse this forum with Yet Another Doc Question.
Sybrand Bakker
Senior Oracle DBA -
After
sql server 2012 installation, I attached my production db. Because of some reasons, i
changed sql engine account from network service user to system user by means of sql server configuration manager.
Now , there isn’t
a problem at sql server running system. But
I have doubts that
this can produce problems later. Because sql server database engine account must have privileges that listed below;
Log on as a service (SeServiceLogonRight)
Replace a process-level token (SeAssignPrimaryTokenPrivilege)
Bypass traverse checking (SeChangeNotifyPrivilege)
Adjust memory quotas for a process
(SeIncreaseQuotaPrivilege)
Permission to start SQL Writer
Permission to read the Event Log service
Permission to read the Remote Procedure Call service
While sql server installation, setup gives these
privileges to network service user automatically, but changing user by means of sql confugarition manager does not give these
privileges.
Now, system user has privileges listed below. And sql server has been running for 1,5 months without any problems.
Log on as a service (SeServiceLogonRight)
Bypass traverse checking
(SeChangeNotifyPrivilege) (Everyone user has his privileges. So i think that system user has this privilege also)
What problems can occur because of this situation? Shall i give other privileges to system user and restart sql server or not? And how can i give these privileges to system user listed below;
Replace a process-level token (
this can be set from user rights assignments)
Adjust memory quotas for a process
(this can be set from user rights assignments)
Permission to start SQL Writer (
? - give advice )
Permission to read the Event Log service (
? - give advice )
Permission to read the Remote Procedure Call service (
? - give advice )Our server is windows server 2008 r2 enterprise edition. I have looked the bunch of permissions in user rights menu that is in local security policy settings gui.
And i have seen those permissions below were not granted to system user;
Bypass traverse checking (SeChangeNotifyPrivilege)
Adjust memory quotas for a process
(SeIncreaseQuotaPrivilege)
So, briefly you say, don't panic ? -
How to move database objects from one user to another user
Could someone help how to move database objects from one user to another user
Thanks in advanceThanks a lot for the reply.
Actually I wanted to know whether there is any command to change the owner ship of the table.
For ex table1 belongs to user1. can the owner of table1 to be changed to owner2.
directly using an oracle command. I knew that it can be done using import and export, since the table was 200 million thought the rename command would be faster instead of import and export.
Thanks Billy for letting me know that it is not possible using oracle query. -
Drop me from the forte-users list
Please drop me from the forte-users list. [email protected]
ThanksI think you may need to contact customer service regarding your request. Just click the link below to see the instructions on how you can get in touch with the Support team ;
http://community.skype.com/t5/The-Skype-Lounge/How-to-Contact-Skype-Customer-Service/td-p/2056783
IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
| skypefordummies.blogspot.com | -
Fatal Error: The schema version of the database is from a newer version of WSUS
Hello,
CM2012 R2 RTM on Server2012 R2 RTM with SQL2012 SP1
installed SQL, WSUS and then CM.
When finished adding WSUS, there was a post installation message but I skipped it and continued to CM installation, as suggested on some blogs. WSUS in CM seems to be a real mystery... and there are multiple workarounds and suggestions.
Now my CM is ready to GO. Configured discovery, boundaries. All components appear green OK. My hand shaked when I click on post Deployment message related to WSUS in server manager. So I clicked it. And received: Post Deployment Failed. There is
a path to log file. The error:
Fatal Error: The schema version of the database is from a newer version of WSUS
than currently installed. You must either patch your WSUS server to at least
that version or drop the database. WSUS was installed with SQL DB.
What do you suggest?
Thanks.
Please see full log:
2013-12-01 06:58:24 Postinstall started
2013-12-01 06:58:24 Detected role services: Api, Database, UI, Services
2013-12-01 06:58:24 Start: LoadSettingsFromXml
2013-12-01 06:58:24 Start: GetConfigValue with filename=UpdateServices-Services.xml item=ContentLocal
2013-12-01 06:58:24 Value is true
2013-12-01 06:58:24 End: GetConfigValue
2013-12-01 06:58:24 Start: GetConfigValue with filename=UpdateServices-Services.xml item=ContentDirectory
2013-12-01 06:58:24 Value is D:\sources\wsus
2013-12-01 06:58:24 End: GetConfigValue
2013-12-01 06:58:24 Content directory is D:\sources\wsus
2013-12-01 06:58:24 Start: GetConfigValue with filename=UpdateServices-DB.xml item=InstanceName
2013-12-01 06:58:24 Value is confman
2013-12-01 06:58:24 End: GetConfigValue
2013-12-01 06:58:24 SQL instance name is confman
2013-12-01 06:58:24 End: LoadSettingsFromXml
Post install is starting
2013-12-01 06:58:24 Start: Run
2013-12-01 06:58:24 Fetching WsusAdministratorsSid from registry store
2013-12-01 06:58:24 Value is S-1-5-21-1033354796-2088831985-1429053453-1003
2013-12-01 06:58:24 Fetching WsusReportersSid from registry store
2013-12-01 06:58:24 Value is S-1-5-21-1033354796-2088831985-1429053453-1004
2013-12-01 06:58:25 Configuring content directory...
2013-12-01 06:58:25 Configuring groups...
2013-12-01 06:58:26 Starting group configuration for WSUS Administrators...
2013-12-01 06:58:26 Found group in regsitry, attempting to use it...
2013-12-01 06:58:28 Writing group to registry...
2013-12-01 06:58:28 Finished group creation
2013-12-01 06:58:28 Starting group configuration for WSUS Reporters...
2013-12-01 06:58:28 Found group in regsitry, attempting to use it...
2013-12-01 06:58:28 Writing group to registry...
2013-12-01 06:58:28 Finished group creation
2013-12-01 06:58:28 Configuring permissions...
2013-12-01 06:58:28 Fetching content directory...
2013-12-01 06:58:28 Fetching ContentDir from registry store
2013-12-01 06:58:28 Value is D:\sources\wsus
2013-12-01 06:58:28 Fetching group SIDs...
2013-12-01 06:58:28 Fetching WsusAdministratorsSid from registry store
2013-12-01 06:58:28 Value is S-1-5-21-1033354796-2088831985-1429053453-1003
2013-12-01 06:58:28 Fetching WsusReportersSid from registry store
2013-12-01 06:58:28 Value is S-1-5-21-1033354796-2088831985-1429053453-1004
2013-12-01 06:58:28 Creating group principals...
2013-12-01 06:58:28 Granting directory permissions...
2013-12-01 06:58:28 Granting permissions on content directory...
2013-12-01 06:58:29 Granting registry permissions...
2013-12-01 06:58:29 Granting registry permissions...
2013-12-01 06:58:29 Granting registry permissions...
2013-12-01 06:58:29 Configuring shares...
2013-12-01 06:58:29 Configuring network shares...
2013-12-01 06:58:29 Fetching content directory...
2013-12-01 06:58:29 Fetching ContentDir from registry store
2013-12-01 06:58:29 Value is D:\sources\wsus
2013-12-01 06:58:29 Fetching WSUS admin SID...
2013-12-01 06:58:29 Fetching WsusAdministratorsSid from registry store
2013-12-01 06:58:29 Value is S-1-5-21-1033354796-2088831985-1429053453-1003
2013-12-01 06:58:29 Content directory is local, creating content shares...
2013-12-01 06:58:29 Creating share "UpdateServicesPackages" with path "D:\sources\wsus\UpdateServicesPackages" and description "A network share to be used by client systems for collecting all software packages (usually applications)
published on this WSUS system."
2013-12-01 06:58:29 Deleting existing share...
2013-12-01 06:58:29 Creating share...
2013-12-01 06:58:29 Share successfully created
2013-12-01 06:58:29 Creating share "WsusContent" with path "D:\sources\wsus\WsusContent" and description "A network share to be used by Local Publishing to place published content on this WSUS system."
2013-12-01 06:58:29 Deleting existing share...
2013-12-01 06:58:29 Creating share...
2013-12-01 06:58:29 Share successfully created
2013-12-01 06:58:29 Creating share "WSUSTemp" with path "C:\Program Files\Update Services\LogFiles\WSUSTemp" and description "A network share used by Local Publishing from a Remote WSUS Console Instance."
2013-12-01 06:58:29 Deleting existing share...
2013-12-01 06:58:29 Creating share...
2013-12-01 06:58:29 Share successfully created
2013-12-01 06:58:29 Finished creating content shares
2013-12-01 06:58:29 Stopping service WSUSService
2013-12-01 06:58:29 Stopping service W3SVC
2013-12-01 06:58:32 Configuring database...
2013-12-01 06:58:32 Configuring the database...
2013-12-01 06:58:32 Establishing DB connection...
2013-12-01 06:58:32 Checking to see if database exists...
2013-12-01 06:58:32 Database exists
2013-12-01 06:58:32 Switching database to single user mode...
2013-12-01 06:58:32 Loading install type query...
2013-12-01 06:58:32 DECLARE @currentDBVersion int
DECLARE @scriptMajorVersion int = (9600)
DECLARE @scriptMinorVersion int = (16384)
DECLARE @databaseMajorVersion int
DECLARE @databaseMinorVersion int
DECLARE @databaseBuildNumber nvarchar(10)
IF NOT EXISTS(SELECT * FROM sys.databases WHERE name='SUSDB')
BEGIN
SELECT 1
END
ELSE
BEGIN
SET @currentDBVersion = (SELECT SchemaVersion FROM SUSDB.dbo.tbSchemaVersion WHERE ComponentName = 'CoreDB')
SET @databaseBuildNumber = (SELECT BuildNumber FROM SUSDB.dbo.tbSchemaVersion WHERE ComponentName = 'CoreDB')
DECLARE @delimiterPosition INT = CHARINDEX('.', @databaseBuildNumber)
IF (@delimiterPosition = 0)
BEGIN
RAISERROR('Invalid schema version number', 16, 1) with nowait
return
END
SET @databaseMajorVersion = SUBSTRING(@databaseBuildNumber, 1, @delimiterPosition - 1)
SET @databaseMinorVersion = SUBSTRING(@databaseBuildNumber, (@delimiterPosition + 1), (10 - @delimiterPosition))
IF @currentDBVersion < 926
BEGIN
SELECT 3
END
ELSE
BEGIN
IF (@scriptMajorVersion > @databaseMajorVersion OR
(@scriptMajorVersion = @databaseMajorVersion AND @scriptMinorVersion > @databaseMinorVersion))
BEGIN
SELECT 2
END
ELSE IF (@scriptMajorVersion = @databaseMajorVersion AND
@scriptMinorVersion = @databaseMinorVersion)
BEGIN
SELECT 0
END
ELSE
BEGIN
SELECT 4
END
END
END
2013-12-01 06:58:33 Install type is: UnsupportedFuture
2013-12-01 06:58:33 DB is a higher version than the config scripts
2013-12-01 06:58:33 Swtching DB to multi-user mode......
2013-12-01 06:58:33 Finished setting multi-user mode
2013-12-01 06:58:33 Microsoft.UpdateServices.Administration.CommandException: The schema version of the database is from a newer version of WSUS
than currently installed. You must either patch your WSUS server to at least
that version or drop the database.
at Microsoft.UpdateServices.Administration.ConfigureDB.CheckForUnsupportedVersion(DBInstallType installType, Boolean dbExists)
at Microsoft.UpdateServices.Administration.ConfigureDB.ConnectToDB()
at Microsoft.UpdateServices.Administration.ConfigureDB.Configure()
at Microsoft.UpdateServices.Administration.PostInstall.Run()
at Microsoft.UpdateServices.Administration.PostInstall.Execute(String[] arguments)
Fatal Error: The schema version of the database is from a newer version of WSUS
than currently installed. You must either patch your WSUS server to at least
that version or drop the database.
"When you hit a wrong note it's the next note that makes it good or bad". Miles DavisGerry,
1. I uninstalled WSUS, removed DB, restarted. And reinstall WSUS again. This time MS Management Console of WSUS could not be started. I did it after WSUS was added following your blog pix.
I checked c:\program files\update services, there were couple of missing directories by comparison what was in case when I installed WSUS after SQL but before CM: Tools, Shema, and another A.. something. I saw this issue on NOOB. And people copied these
directories from previous installation.
How we can explain this behavior on RTM version?
Then I uninstalled it again. And give another try... Here I found another interesting thing. Please compare your slide number 5 from your link and attached one. You can see that on Add Roles and Features Wizard page are missing items. Some
of them were found in next screen of my installation (I am using RTM server) but one API and Power shell cmdlets were not listed on final screen before start install. May be those are note important...
I reinstall again... and the MS Management Console fails again. Exactly the same thing that I saw during 2 weeks of trying to make works. Don't see what I can screw up here.
What about missing directories after reinstalling WSUS. Is that normal? And in IIS there is no WSUS.
I don't see here any difficult thing, just simple wizard... But it not works. Second CM server.
What I do wrong here to create a failure of MMC. There is any blog with examples of RTM Server 2012 and CM RTM. All stuff is 2012. So kind of guesses and no precise thing to do...
Sorry for my cry :). The only solution is to call MS and pay $250 for SUCH a trivial thing that not works.
Any help? Please see pics. Can you confirm that you have the same or more directories in Update Services
Thanks.
API and Power Shell Cmdlets feature missed if compare with yours slides.
"When you hit a wrong note it's the next note that makes it good or bad". Miles Davis -
I just upgraded a database to 7.6.0.12. The catalog of the upgraded database is corrupt for one user. When I try to view the triggers defined for the user I get this message :
General error;-9205 POS(1) System error: AK Catalog information not found:0000000000000000007200
SELECT * FROM "DOMAIN"."TRIGGERS"
All other entities, tables, sequences, procs appear to be valid. Another user's entities are all present and correct, including triggers.
How can I repair the catalog to allow me to recreate the missing triggers?Hi again Joe,
with the help of the vtrace you provided, we found out the TABID of the involved table: 0x000000000000051E
We now need to find out which table it is:
SELECT SCHEMANAME, TABLENAME FROM TABLES WHERE TABLEID = x'000000000000051E'
After finding out the relevant table, there are two options:
1. delete the triggers for this table
or
2. copy the table in a new table, delete the old table and rename the new table to the old table:
CREATE TABLE <schema>.<new_table> AS SELECT * FROM <schema>.<old_table>
DROP TABLE <schema>.<old_table>
RENAME TABLE <schema>.<new_table> TO <schema>.<old_table>
This all (point 1 AND 2) should preferably be done within a transaction, so it can be rollbacked, should anything go wrong.
Please note that in point 2 that all given privileges, defined views and indexes no longer apply or exist, these have to be regiven/recreated.
It might thus be a good idea to check if there are views defined using the table <schema>.<old_table> BEFORE following the steps of point 2.
Regards,
Roland -
How to create a new user without any sample objects from any other user?
Question as the title.
I had the example dababase installed when I installed the Oracle database.
Every time, when I create a new user, there will be some example objects coming
with the new user.
How can I remove these objects from the new user?
Or, how can I create a new user without the example objects?
Thanks in advance.I think the easiest way for you would be to use OEM.
Just locate each object that you want to remove and right click->remove. Don't bother doing this for any indexes as these will be removed when you drop the corresponding tables.
If you want to try command line through sqlplus then identify the objects you want to remove by selecting from the user_objects view while logged in as this user. This will give you the name and type of object. Then issue the relevant drop command.
It's probably worth making sure you have a valid backup first, just in case things go wrong! -
Mime attachments in Mail from two mac users
I've been receiving mime attachments in Tiger Mail from Ebay and members for a while and I've searched the forum for answers but haven't found a viable solution yet. I end up using TextEdit to open them. I've contacted ebay about this and they have no clue, and think it's spam even though I tell them I get them from Ebay tech support, however they do show up ok in my RCN webmail when I check there.
Anyway that's not the problem now, I was trying to troubleshoot my father's mail problem who is Panther Mail and it mysteriously stopped working for him a couple days ago both sending and receiving. However he is getting them from his webmail at SBC/Yahoo formerly Ameritech. I checked his account settings over the phone and they seemed correct to what he had before but I had him contact his provider.
They don't seem to know what's going on and wanted him to contact Apple.I had him contact them again and they finally did have him change his outgoing mail server from Ameritech to SBC/Yahoo. So he is able to send from there now but not receive emails. ( he still still sends and receives ok at his webmail site) . Since they changed the outgoing mail server however, the email he sends me (all plain text) is coming now as a mime attachment.
I've never seen this before from two Mac users using Mail and plain messages. I had him try changing back to the Ameritech outgoing sever but that still doesn't work. And again if I check my RCN webmail I can view these messages fine in the body of the email there, just not in Mail. Any ideas what may have caused this? Is it because of the Yahoo outgoing mail server? He's about givin up and has resorted to his webmail only for now. I generally like Mail but this is a pia.
Craig
G5 Dual 2.5GHZ, 15 TiBook 1GHZ, I.25 dual G4 MDD, 15G ipod, Beige G3/500GHZ Mac OS X (10.4.7)<Where is it designated as a "mime-attachment" & where does the "27bytes" text appear?>
It shows mime-attachment(27bytes) just below the little plain document icon. This shows up both in the body of the email and also the little attachment drop down menu below the To / subject area.
<Also, if you go to Mail's View > Message submenu when one of these messages is open, which (if any) 'alternate' menu choices are available (not grayed out)? >
All are greyed out except Long headers and Raw source.
Here is the header info in the message if that helps any:
From: [email protected]
Subject: test
Date: December 27, 2006 10:49:27 PM EST
To: [email protected]
Return-Path: <[email protected]>
Received: from mr05.lnh.mail.rcn.net (EHLO mr05.lnh.mail.rcn.net) ([207.172.157.25]) by ms05.lnh.mail.rcn.net (MOS 3.7.5a-GA FastPath queued) with ESMTP id CYF54813; Wed, 27 Dec 2006 22:49:31 -0500 (EST)
Received: from mx06.lnh.mail.rcn.net (mx06.lnh.mail.rcn.net [207.172.157.56]) by mr05.lnh.mail.rcn.net (MOS 3.7.5a-GA) with ESMTP id MDY18691; Wed, 27 Dec 2006 22:49:30 -0500 (EST)
Received: from flpvm09.prodigy.net ([207.115.20.39]) by mx06.lnh.mail.rcn.net with ESMTP; 27 Dec 2006 22:49:29 -0500
Received: from [75.34.9.255] (adsl-75-34-9-255.dsl.chcgil.sbcglobal.net [75.34.9.255]) by flpvm09.prodigy.net (8.13.8 out.dk.spool/8.13.8) with ESMTP id kBS3nEOh005937 for <[email protected]>; Wed, 27 Dec 2006 19:49:15 -0800
X-Orbl: [75.34.9.255]
Domainkey-Signature: a=rsa-sha1; s=sbc01; d=ameritech.net; c=nofws; q=dns; h=mime-version:content-transfer-encoding:message-id:
Content-Type: to:from:subject:date:x-mailer; b=RT51cAASkaC4dXKPZSEOEdmv7ApKJ68xdvGgdP7ifDKDoI6j6EIr5dyZl7OrPcoww SjzfTr1nAxHOJGy0wzYeg==
Content-Type: text/plain; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v624)
Content-Transfer-Encoding: 7bit
Message-Id: <[email protected]>
X-Mailer: Apple Mail (2.624)
X-Junkmail-Status: score=10/50, host=mr05.lnh.mail.rcn.net
X-Junkmail-Sd-Raw: score=unknown, refid=str=0001.0A090203.45933D44.001B,ss=1,fgs=0, ip=207.115.20.39, so=2006-05-09 23:27:51, dmn=5.2.121/2006-09-27
here is the raw source. The last line is what shows up in the mime attachment when it is opened in text edit or viewed at my webmail :
Return-Path: <[email protected]>
Received: from mr05.lnh.mail.rcn.net (EHLO mr05.lnh.mail.rcn.net) ([207.172.157.25])
by ms05.lnh.mail.rcn.net (MOS 3.7.5a-GA FastPath queued)
with ESMTP id CYF54813;
Wed, 27 Dec 2006 22:49:31 -0500 (EST)
Received: from mx06.lnh.mail.rcn.net (mx06.lnh.mail.rcn.net [207.172.157.56])
by mr05.lnh.mail.rcn.net (MOS 3.7.5a-GA)
with ESMTP id MDY18691;
Wed, 27 Dec 2006 22:49:30 -0500 (EST)
Received: from flpvm09.prodigy.net ([207.115.20.39])
by mx06.lnh.mail.rcn.net with ESMTP; 27 Dec 2006 22:49:29 -0500
X-ORBL: [75.34.9.255]
DomainKey-Signature: a=rsa-sha1; s=sbc01; d=ameritech.net; c=nofws; q=dns;
h=mime-version:content-transfer-encoding:message-id:
content-type: to:from:subject:date:x-mailer;
b=RT51cAASkaC4dXKPZSEOEdmv7ApKJ68xdvGgdP7ifDKDoI6j6EIr5dyZl7OrPcoww
SjzfTr1nAxHOJGy0wzYeg==
Received: from [75.34.9.255] (adsl-75-34-9-255.dsl.chcgil.sbcglobal.net [75.34.9.255])
by flpvm09.prodigy.net (8.13.8 out.dk.spool/8.13.8) with ESMTP id kBS3nEOh005937
for <[email protected]>; Wed, 27 Dec 2006 19:49:15 -0800
Mime-Version: 1.0 (Apple Message framework v624)
Content-Transfer-Encoding: 7bit
Message-Id: <[email protected]>
Content-Type: text/plain; charset=US-ASCII; format=flowed
To: Craig Hlady Hlady <[email protected]>
From: bohdan hlady <[email protected]>
Subject: test
Date: Wed, 27 Dec 2006 21:49:27 -0600
X-Mailer: Apple Mail (2.624)
X-Junkmail-Status: score=10/50, host=mr05.lnh.mail.rcn.net
X-Junkmail-SD-Raw: score=unknown,
refid=str=0001.0A090203.45933D44.001B,ss=1,fgs=0,
ip=207.115.20.39,
so=2006-05-09 23:27:51,
dmn=5.2.121/2006-09-27
craig.;;check this one out
G5 Dual 2.5GHZ, 15 TiBook 1GHZ, I.25 dual G4 MDD, 15G ipod, Beige G3/500GHZ Mac OS X (10.4.7) -
Oracle10g database migration from MID to MIT
Dear all,
im currently doing the migration from production server (MID) to dev server (MIT).
i've use 2 method below but all encounted the error and fail to import. hope some one can point the error and explain the some of my problem.
1. used oracle exp and imp
full database.
- i've exp the full database and drop all the current R3 table by following selection syntax.
select 'drop table sapsr3.' ||table_name|| ';' from user_table.
- but some table fail to drop because some of the table name consist '//'
- after doing imp, R3 cannot be start and keep show yellow status.
- log file display 'waiting for termination icman'
Q1. is that the method i did is correct?
Q2. how do i drop the table which start from '//'
single table.
- i've exp a single table from database then imp.
- while i check on SQL+. the table exist and consist data.
- but when i check on GUI. the table doesn't exist.
Q3. is that the table imported is only import to oracle. but not R3?
Q4. how to make it completely update to R3?
2. used SAP brtools.
full database.
- i've export a complete database backup(MID) by selected
backup and recovery -> database backup -> backup device type (disk)
- then import the backup to MIT
restore and recovery->while dabase reset->select consistent database backup()->
check the status of database files()->restore control files and redolog files()->
restore data files() ->reset program status()
note: () means the whole process.
Q5. database restored from MID to MIT, but the MIT could not start R3. may i know what i miss to cross R3 could not start?
single table
- export single table thru segment management-> export table from MID.
- import single table thru segment management-> import table to MIT.
Q6. error show oracle_home didnt set. but i've check on system enviroment and oracle_home is there. and i double confirm the variable by enter 'set'. Oracle_home still there. should i set oracle_home in cmd again?
note: pls state which method is preferable and which question is answering.
thanks and appreciate from yours reply.finish patch the r3load and add the dbs/ora/tnsname = <SID> in the tnsname.
but the error is still the same.
INFO 2009-08-17 18:48:29
Output of C:\usr\sap\MID\SYS\exe\uc\NTI386\R3load.exe -testconnect is written to the logfile R3load.exe.log.
WARNING 2009-08-17 18:48:29
Execution of the command "C:\usr\sap\MID\SYS\exe\uc\NTI386\R3load.exe -testconnect" finished with return code 2. Output:
sapparam: sapargv( argc, argv) has not been called.
sapparam(1c): No Profile used.
sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
C:\usr\sap\MID\SYS\exe\uc\NTI386\R3load.exe: START OF LOG: 20090817184829
C:\usr\sap\MID\SYS\exe\uc\NTI386\R3load.exe: sccsid @(#) $Id: //bas/700_REL/src/R3ld/R3load/R3ldmain.c#20 $ SAP
C:\usr\sap\MID\SYS\exe\uc\NTI386\R3load.exe: version R7.00/V1.4 [UNICODE]
Compiled Jul 7 2009 08:04:27
C:\usr\sap\MID\SYS\exe\uc\NTI386\R3load.exe -testconnect
DbSl Trace: Cannot connect: dbs/ora/tnsname in profile missing
(DB) ERROR: db_connect rc = 256
DbSl Trace: Cannot connect: dbs/ora/tnsname in profile missing
(DB) ERROR: DbSlErrorMsg rc = 29
C:\usr\sap\MID\SYS\exe\uc\NTI386\R3load.exe: job finished with 1 error(s)
C:\usr\sap\MID\SYS\exe\uc\NTI386\R3load.exe: END OF LOG: 20090817184829
ERROR 2009-08-17 18:48:29
CJS-30023 Process call 'C:\usr\sap\MID\SYS\exe\uc\NTI386\R3load.exe -testconnect' exits with error code 2. For details see log file(s) R3load.exe.log.
ERROR 2009-08-17 18:48:29
FCO-00011 The step testDatabaseConnection with step key |NW_Export|ind|ind|ind|ind|0|0|NW_ABAP_Export_Dialog|ind|ind|ind|ind|4|0|NW_ABAP_Export|ind|ind|ind|ind|0|0|testDatabaseConnection was executed with status ERROR .
INFO 2009-08-17 18:48:56
An error occured and the user decide to stop.\n Current step "|NW_Export|ind|ind|ind|ind|0|0|NW_ABAP_Export_Dialog|ind|ind|ind|ind|4|0|NW_ABAP_Export|ind|ind|ind|ind|0|0|testDatabaseConnection". -
I'm having trouble dropping a database link. In SQLPlus I get:
SQL> SELECT db_link FROM USER_DB_LINKS where db_link like 'PROD%';
DB_LINK
PROD.CBS.STATE.OR.US
PROD.CBS.STATE.OR.US
PROD_DB.CBS.STATE.OR.US
PROD_RI.CBS.STATE.OR.US
SQL> drop database link PROD_RI.CBS.STATE.OR.US;
drop database link PROD_RI.CBS.STATE.OR.US
ERROR at line 1:
ORA-02084: database name is missing a component
This is the method identified in the 10g manual: http://download-west.oracle.com/docs/cd/B13789_01/server.101/b10739/ds_admin.htm#sthref3729
When I try to drop the same link using OEM, I get the message:
ORA-02024: database link not found
In the case of OEM, I'm logging on as a different user then the owner of the link. In the case of SQLPlus, I get the same error whether or not I'm logged in as the owner of the db link, or myself.
Thanks,
ChuckUsing the quotes worked:
drop database link "PROD_RI.CBS.STATE.OR.US";
but only if I own the database link. How, as the DBA, can I get rid of a link that someone else created (our DEV system is littered with experiemental links).
The same above doesn't work if it's owned by someone else:
SQL> DROP DATABASE LINK "IRISHRD.CBS.STATE.OR.US";
DROP DATABASE LINK "IRISHRD.CBS.STATE.OR.US"
ERROR at line 1:
ORA-02024: database link not found
I tried changing the schema context to no avail either:
SQL> DROP DATABASE LINK "IRISHRD.CBS.STATE.OR.US";
DROP DATABASE LINK "IRISHRD.CBS.STATE.OR.US"
ERROR at line 1:
ORA-01031: insufficient privileges
Thanks,
Chuck
Maybe you are looking for
-
Problems with different versions of ColdFusio
Hello There I installed CF8 using the multiserver option and also deployed CF7 on the same JRun without checking to create a service. I also downloaded the latest version of the Java SDK (1.4.2_15) and installed on my machine. I created a different j
-
Safari 4.1.3 won't open
I've tried deleting the cached files, moving the preference files com.apple.Safari.plist and SafeBrowsing.db, and reinstalling the software. It still dies immediately upon launch. this is with os 10.4.11 on a power pc g4 iBook. below is the latest
-
Can't see my network shared folders(on PCs)
I have a home network with D-Link router with 3 other computers (2 WinXP and a Vista). The computers are all on the same subnet 192.168.0.10X and all use DHCP from the Router. The Macbook is getting an IP from the router but it doesn't see the other
-
LOV parameter...
I have an LOV in a page and want to pass a parameter so the list that is presented to the user changes depending upon the parameter. I can pass a URL parameter to a page and pick it up in the controller code as pageContext.getParameter. However I am
-
I know the EJB spec says I'm not allowed to access any files from within an EJB. I recently discovered a developer on our team is using a FileWriter to do some custom outputting. I'm fairly sure that he's not allowed to do what he's doing, but to be