lock all users in a maintenance of the database open to specific users
Hello
I need to write a script which locks all users except some mentioned users. There is a problem most of my users db name is full. like 100, 101 102, you have to put "" to search for.
Can someone help me with this?
Kind regards
Of course, just concatenate the ' ' in the same way:
Select "change user" "|" "" USER NAME | "" account lock;' from dba_users where username NOT IN ('EXCEPTION_USER1', 'EXCEPTION_USERN'); "
Tags: Database
Similar Questions
-
backs up all blocks of logic control validate the database
Hello
Metalink: How to use RMAN, check for logical and physical database Corruption [ID 283053.1]
The following example shows how to validate all data files:
Run {}
allocate channel d1 type disk;
backs up all blocks of logic control validate the database.
output channel d1;
}
This command checks only corruption, or it is actually trying to save the data files on the disks?
Thank youHello
The BACKUP VALIDATE statement is used to check The corrupt block is not for the performance of a backup.
You will have more details on the following links:
http://download.Oracle.com/docs/CD/B28359_01/backup.111/b28270/rcmvalid.htm#CHDECGBJ
http://download.Oracle.com/docs/CD/B28359_01/backup.111/b28270/rcmvalid.htm#CHDCEHFD
Hope this helps.
Best regards
Jean Valentine -
What are all the scenarios that we open the database opens resetlog mode
What are all the scenarios that we open the database opens resetlog mode... Please adviseIn any case, when an incomplete recovery is made you must open mode resetlog database.
-
HI during startup of the database of the following errors is. Please help solve the problem.
SQL > alter database open;
change the database open * ERROR at line 1: ORA-03113: end of file on the channel of communication process ID: 10400 Session ID: 418 serial number: 3 -.
============================================================
Please see the alerts log entries
--------------------------------------------------------------------------------------------------------------------------------
Commissioning:
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
With the options of partitioning, OLAP, Data Mining and Real Application Testing.
Using parameters in spfile D:\APP\ADMINISTRATOR\PRODUCT\11.2.0\DBHOME_1\DATABASE\SPFILEATTNDPRD server-side. ORA
Parameters of the system with default values:
process = 400
sessions = 624
memory_target = 4G
control_files = 'D:\ORACLE\ORADATA\ATTNDPRD\CONTROLFILE\O1_MF_8LRQYB0M_. CTL.
control_files = 'C:\ORACLE\ORADATA\ATTNDPRD\CONTROLFILE\O1_MF_8LRQYB13_. CTL.
DB_BLOCK_SIZE = 8192
compatible = "11.2.0.0.0."
log_archive_format = "ARC%S_%R.%T."
db_create_file_dest = 'D:\oracle\oradata. '
db_create_online_log_dest_1 = "D:\oracle\oradata".
db_create_online_log_dest_2 = "C:\oracle\oradata".
db_recovery_file_dest = 'C:\oracle\oradata\flash_area. '
db_recovery_file_dest_size = 8G
undo_tablespace = 'UNDOTBS1.
Remote_login_passwordfile = "EXCLUSIVE."
db_domain = «»
dispatchers = "(PROTOCOL=TCP) (SERVICE = ATTNDPRDXDB)" "
audit_file_dest = "D:\APP\ADMINISTRATOR\ADMIN\ATTNDPRD\ADUMP".
AUDIT_TRAIL = 'DB '.
db_name = "ATTNDPRD".
open_cursors = 300
diagnostic_dest = "D:\APP\ADMINISTRATOR".
Sun 24 May 13:43:09 2015
PMON started with pid = 2, OS id = 5792
Sun 24 May 13:43:09 2015
VKTM started with pid = 3, OS id = 6500 high priority
VKTM clocked at (10) precision of milliseconds with DBRM quantum (100) ms
Sun 24 May 13:43:09 2015
GEN0 started with pid = 4, OS id = 13072
Sun 24 May 13:43:09 2015
DIAG started with pid = 5, OS id = 1424
Sun 24 May 13:43:09 2015
DBRM started with pid = 6, OS id = 8240
Sun 24 May 13:43:09 2015
PSP0 started with pid = 7, OS id = 2980
Sun 24 May 13:43:09 2015
DIA0 started with pid = 8, OS id = 12956
Sun 24 May 13:43:09 2015
MA started with pid = 9, OS id = 13356
Sun 24 May 13:43:09 2015
DBW0 started with pid = 10, OS id = 14248
Sun 24 May 13:43:09 2015
DBW1 started with pid = 11, OS id = 17900
Sun 24 May 13:43:09 2015
LGWR started with pid = 12, OS id = 5564
Sun 24 May 13:43:09 2015
CKPT started with pid = 13, OS id = 16736
Sun 24 May 13:43:09 2015
SMON started with pid = 14, OS id = 14068
Sun 24 May 13:43:09 2015
RECCE has started with pid = 15, OS id = 16288
Sun 24 May 13:43:09 2015
MMON started with pid = 16, OS id = 10884
commissioning 1 dispatcher (s) for '(ADDRESS =(PARTIAL=YES) (PROTOCOL = TCP))' network address...
commissioning or shared server 1...
Environment ORACLE_BASE = D:\app\Administrator
Sun 24 May 13:43:09 2015
ALTER DATABASE MOUNT
Sun 24 May 13:43:09 2015
MMNL started with pid = 17, OS id = 16128
Mount of redo thread 1, with mount id 3325657453
Database mounted in exclusive Mode
Disabled lost write protect
Completed: ALTER DATABASE MOUNT
Sun 24 May 13:43:23 2015
change the database open
Sun 24 May 13:43:23 2015
LGWR: FROM PROCESS ARCH
Sun 24 May 13:43:23 2015
Arc0 started with pid = 21, OS id = 10084
Arc0: Started archiving
LGWR: FROM PROCESS ARCH COMPLETE
ARC0: FROM PROCESS ARCH
Sun 24 May 13:43:24 2015
Arc1 started with pid = 22, OS id = 18400
Sun 24 May 13:43:24 2015
ARC2 started with pid = 23, OS id = 17280
Arc1: Started archiving
ARC2: Started archiving
Arc1: become the "no FAL' ARCH
Arc1: become the "no SRL" ARCH
ARC2: Become the heartbeat ARCH
Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:
ORA-19815: WARNING: db_recovery_file_dest_size 8589934592 bytes is 100.00% used and has 0 bytes remaining available.
************************************************************************
You have choice to free up space in the recovery area:
1 consider changing STRATEGY OF RETENTION of RMAN. If you are using Data Guard
then consider changing POLICY of DELETE ARCHIVELOG RMAN.
2 back up files on a tertiary device such as a tape with RMAN
SAFEGUARDING RECOVERY AREA command.
3. Add space drive and increase the db_recovery_file_dest_size setting to
reflect the new space.
4 remove the unnecessary files using the RMAN DELETE command. If a service
the system control has been used to remove the files, and then use the RMAN DUPLICATION and
Commands DELETE has EXPIRED.
************************************************************************
Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:
ORA-19809: limit exceeded for file recovery
ORA-19804: cannot recover disk 44571136 bytes limit 8589934592 space
ARCH: 19809 error creating archive log file to ' C:\ORACLE\ORADATA\FLASH_AREA\ATTNDPRD\ARCHIVELOG\2015_05_24\O1_MF_1_10343_%U_. ARC'
Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_ora_10400.trc file:
ORA-16038: log 2 # 10343 sequence can be archived
ORA-19809: limit exceeded for file recovery
ORA-00312: wire 2 1 online journal: ' D:\ORACLE\ORADATA\ATTNDPRD\ONLINELOG\O1_MF_2_8LRQYD8B_. JOURNAL"
ORA-00312: wire 2 1 online journal: ' C:\ORACLE\ORADATA\ATTNDPRD\ONLINELOG\O1_MF_2_8LRQYDF6_. JOURNAL"
USER (ospid: 10400): put an end to litigation because of the error 16038
Sun 24 May 13:43:24 2015
ARC3 started with pid = 24, OS id = 2188
Errors in the d:\app\administrator\diag\rdbms\attndprd\attndprd\trace\attndprd_arc2_17280.trc file:
ORA-19815: WARNING: db_recovery_file_dest_size 8589934592 bytes is 100.00% used and has 0 bytes remaining available.
************************************************************************
You have choice to free up space in the recovery area:
1 consider changing STRATEGY OF RETENTION of RMAN. If you are using Data Guard
then consider changing POLICY of DELETE ARCHIVELOG RMAN.
2 back up files on a tertiary device such as a tape with RMAN
SAFEGUARDING RECOVERY AREA command.
3. Add space drive and increase the db_recovery_file_dest_size setting to
reflect the new space.
4 remove the unnecessary files using the RMAN DELETE command. If a service
the system control has been used to remove the files, and then use the RMAN DUPLICATION and
Commands DELETE has EXPIRED.
************************************************************************
Instance of stopped by USER, pid = 10400
--------------------------------------------------------------------------------------------------------------------------
Regarding
Ngoyi
Hello
Now it works very well... with following
--------------------------------------------------
using sqlplus
- Startup mount
- ALTER database noarchivelog;
- ALTER database open;
-------------------------------------------------------------------------------
Concerning
Ngoyi
-------------------------------------------------
-
Apply security to Dim will lock all users?
If I modify a dimension of XYZ and select apply security, all users will be locked out of this dimension after that? I guess just that nobody will access what anyone in this dimension until an admin assigns READ/WRITE rights to the members of this dimension?Hello
If you select the dimension to use security then forms will return an error message and is not not visible until you apply permissions for members in the dimension.
See you soon
John
http://John-Goodwin.blogspot.com/ -
Applet user accounts causing the failed connection and locking (all LOCKED OUT USERS)
I set it up to lock an account after 3 failed attempts.
If I open the "User accounts" applet, it causes the current user has a login attempt has failed. If I do this 3 times, I'm locked up.
Worse still, if I open the applet "User accounts" and then click "Manage user accounts" 3 times, I lock all users!
What is the origin of the attempts to logon? This does not happen if I use "Computer management" to access user accounts.
Thank you
Given that the problem exists on all machines, it must be due to security policy, you have created. Security policy questions are beyond the scope of the proceeding. I recommend that transfer you your question in this forum TechNet.
-
Tables of the database for users of Shared Services
Hi all
I'm discovering in the database tables, know when a user has been added as a group in Shared Services. This is for purposes of SOX. Can you let me know which database table, we need to check that we can get a timestamp date for added user?
We use HFM 11.1.2.2 and Microsoft SQL server
Thank you
Steffi.
Hey Steffi,
I don't know any tables db HSS that contain this timestamp. The CSS_GROUP_MEMBERS table lists groups/members, but no other information. There are the timestamps for the CSS_USERS and CSS_GROUPS tables, but they show only when Aboriginal users/groups have been created and updated.
The best way to record this information for your next audit would be to enable auditing of Shared Services. To do this:
- HSS > Administration > configure audit
- Enable audit value
- Select the items that you want to audit (Directory Management has elements such as 'Assign the user as a member of the group' and 'Remove user as a member of the group'
- Restart the Services
Thank you
Erich
-
All my programs are passed to the default opening program here as Word 2007 How do I change all the acknowledgement of programs to defuault there? I uninstalled the steps and it made no difference so I reinstalled and opened. Then he did the same as before. How can I get my programs back to default here?
This problem started as soon as I updated my Windows 7 - 32 bit - please help. :(Hello mattyboy1212,
Thanks for posting on the Microsoft answers Forum.
Try these steps and see if you can associate the default programs. If they are associated with Word, and then change them to the correct program.
1. click Start and then click Control Panel.
2. click on programs link.
Note: If you see small icons or large icons in the control panel display, you will not see this link. Click on the default programs icon, and then click the link associated with a file type or Protocol with a program . Go to step 4.
3. click on the link to Open a file in a specific program type always under default programs .
4. in the set Associations window, scroll down until you see the file extension that you want to change the default for program.
5. click on the extension of the file to select it, once you have found what you are looking for.
6. click the button of change... program above the scroll bar.
The Open with dialog box should appear.
7. look into options for programs recommended and choose the application you want to open it with the file extension when you double-click on the particular type of the file on your computer.
Note: Chances are, requests described under the programs recommended will be contain more programs for this type of file, but don't forget to look at the applications under other programs. You may need to click the v to expand the list of these programs.
Note: Click Browse... to search, through your computer for any program not shown do not want to use.
8. click OK in the Open with window. Windows 7 is going to update the list of file associations to display the new default program to open this type of file.
9. click the button close the bottom together associations . You can also close the window of the Control Panel if it is still open.
10. at this stage, when you double-click on any file with this particular file extension, the program you partner in step 7 will launch and load the particular file.
Important: Program used to automatically open when these types of files have been launched will again open these types of files. To use a different program, you just need to start the program manually and then browse your computer for the file in particular.
If please reply back and let us know if know if it helped to solve your problem or if you still need help.
Sincerely,
Marilyn
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
How s/n know when and what account perform a function using the database link?
Dear,
My application of the CIM team asked DBA to create new function and run it. Function must use the database link for remote database data. So I need to create a new database to their licensing link. Cause we guess we'll experience the performance issue after the user performs this function, or another question and errors may occur. So we want to know when and who use this feature that connects to a remote database through the new database connection in advance. And I also need to know when and which connect to the remote database using this new database link. We have no idea to get this information? Can anyone recommend how do? Thank you very much.
Best reqards, Otis.
Check what business purpose, it will solve. If the function is so safe, why everyone will use. Only admin people should access.
All of these additional controls of this kind must be avoided as much as possible to improve the overall performance of the application.
Still if you need, see the database audit mechanism, specifically designed for this type of activity.
Kind regards
Harman
-
How to check if the database for DRDA gateway is installed and configured.
Hi all
How can we check if the database for DRDA gateway is installed and configured.
Our operating system is AIX 5 L 64 bit OS.
RDBMS: 11.2.0.3
Kind regardsDuplicated
How to check if the database for DRDA gateway is installed and configured.+ - locked thread-+.
Nicolas.
-
em12cr3 showing on the eve of the database problems
Oracle Enterprise Manager 12.1.0.3
Oracle RDBMS 11.2.0.4
I recently installed this very with a CMS and database repository on a server.
I added a cluster that has the database open as well as a database of pending which is in Mount that we do not use Active Data Guard.
To use EM with a vigil in the mount, the connection must be an account with SYSDBA. On the eve of one indicates the Type
Cluster - physical Standby database. It appears, however, with a Collection error metric for its database system, and I don't see why.
I moved add another cluster that also has opened with two STANDBYS in mount databases.
These guys, shows to monitor the credentials as dbsnmp and won't let me change it to SYS - this column is grayed out.
It did not work in 12.1.0.2 without problem, I'm just limited on the standby located in Mont - I agree with that.
I tried to drop and add because sometimes works with EM.
I tried emcli, as follows:
emcli get_targets | grep tecmop
0 oracle_database tecmop_tecmop1
0 oracle_database tecmop_tecmop2
2 tecmop_sys of metric oracle_dbsys collective
2 metric rac_database tecmop community
$ emcli set_monitoring_credential-target_name = "tecmop'-'rac_database' = target_type - set_name ="DBCreds"- cred_type ="DBCreds"- attributes = 'DBUserName:sys; DBRole:sysdba; DBPassword:mypswd ".
Follow-up of the credential set successfully.
This no longer works.
I opened a SR but have not had a response yet (it was a few hours). Maybe someone here has an idea to try?
After all this... Here is the ANSWER.
When standby is added to the EM, its composition is moved under the primary database system and database backup system is put in blackout.
The backup of database system is not necessary and must be deleted manually. The GUI returns an error, then emcli:
emcli delete_target-name = "trptwp_sys" - type = "oracle_dbsys".
should be used to remove it.
It is a "expected behavior", although I'm not sure that it should! Not me because this happened to 12.1.0.2.
In any case, I hope that manually delete the backup of database systems are in agreement and they are not necessary for what.
-
register the database with the database Vault
Version: 11.2.0.2.0
Operating system: Solaris
Can someone tell me please how to enter Oracle Database Vault with a database from command line without using DBCA.
The doc oracle E23090-10 provides only through the DBCA Wizard. I'm having some trouble with my software x - manager, so I cannot use the DBCA Wizard and seeks to enter the vault of the database with the database by command line.
Oracle database Vault is already enabled through 'chopt enable lbac' and 'chopt enable dv. Now all I do is register with the databases on the server.
Thank you
Hi DK2010, actually I found my answer in the metalink Doc ID 803948.1
I have to run the dbca in silent mode and at the end of this doc, it's exactly what I need.
"
DBCA-silent - configureDatabase
sourceDB-
-
Is there a way to make the search of texts in the database?
I was wondering if there is a way to push the search of texts in the database.
Specifically, I'm looking for a way to create a DocumentTermMatrix and work on it in the database.
Company R Oracle provides any type of text mining functions or is there a way to push the standard package R tm is run in the database?
Thank you
Mike
Mike,
Oracle Enterprise R does not include the extraction of specific text features, but because it can exploit data in extraction of features Oracle database, it may inherit the ability to analyze textual data using the tm or other related packages of NOTCH. We provide examples of use of packages open source R with ore in the Oracle Enterprise of R User Guide and training materials. Here are some links to help you:
See the section called "Run R calculation in Oracle Database":
http://docs.Oracle.com/CD/E11882_01/doc.112/e36761/using.htm#OREUG163
See slide 25:
Any R package used with ore must be installed with the R on the database server and client of R.
Sherry
-
Heavy binary files must be stored in the database?
I was asked an interesting question: If a database contains all the data? Or large binary files must be stored in the file system?
Example of large binary files: videos or PDFs heavy (+ 200 MB).
With an old aspx web app (1.1) I tried to open a 200 MB pdf file stored as a BLOB in a base of Oracle 11 g and it has run out of memory.
However, same asp.net web application had no problem to open the same pdf file stored in the file system on a server. It could be that maybe there is some way to open fields heavy blobs with asp.net.
For reasons of integrity, I say that all data must be stored in the database, but my cases described showed me that maybe it's not the way.
SQL Server allows the content of the columns of varbinary (max) to be stored on the file system, maybe there is something similar in Oracle?With an old aspx web app (1.1) I tried to open a 200 MB pdf file stored as a BLOB in a base of Oracle 11 g and it has run out of memory.
It could be that maybe there is some way to open fields heavy blobs with asp.net.
Depends entirely on how to open BLOB.
A simple way is enter any value in table (like getArray()). It can be risky when there are great values.
More sophisticated is to read in chunks.
In environments such as Java or ASP.net programming should be operable methods BLOB as a stream of data. In Java, it is ResultSet.getBinaryStream)
You can spend this additional flow, for example the browser connection. It will read the BLOB value into small pieces (or 64K) and pass it to the browser or whatever the customer. -
Cannot open the database: error, ora-03113 end of file communication
Hi guys,.
I am facing a problem with my database
Oracle Linux Tikanga 5 machine
database: 10.2.0.1
Error: ora-03113
I tried to move a log file while inserting data...
I restored and tried to get back what she recovers with message media recover full but doesnot allow to open the database
gives the same error: error: ora-03113 end of file communication
Watch alert_log
____________
ALTER database recover if necessary
beginning
Start of recovery Media
ORA - 264 marked during: alter database recover if necessary
beginning
...
Fri Jan 9 16:20:18 2013
2048 MB db_recovery_file_dest_size is 40,79% used. It is a
user-specified limit on the amount of space that will be used by the present
for the files related to the recovery of databases and does not reflect the amount of
space available in the underlying file system or ASM diskgroup.
Fri Jan 9 16:22:02 2013
change the list of file restore of database data clear
Fri Jan 9 16:22:02 2013
Completed: change the clear list of restore of database data file
Fri Jan 9 16:22:02 2013
Edit the list of file restore of database data
1, 2, 3, 4, 5
Completed: change the list of file restore of database data
1, 2, 3, 4, 5
Fri Jan 9 16:22:02 2013
ALTER database recover if necessary
beginning
Start of recovery Media
ORA - 264 marked during: alter database recover if necessary
beginning
...
Fri Jan 9 16:22:07 2013
change the database open
Fri Jan 9 16:22:07 2013
LGWR: FROM PROCESS ARCH
Arc0 started with pid = 16, OS id = 2049
Fri Jan 9 16:22:07 2013
Arc0: Started archiving
Arc1: Started archiving
LGWR: FROM PROCESS ARCH COMPLETE
Arc1 started with pid = 17, OS id = 2051
Fri Jan 9 16:22:07 2013
Fix half open fully the valve of the thread 1
Fri Jan 9 16:22:07 2013
Errors in the /d1/app/oracle/oradata/orcl/bdump/orcl_lgwr_1966.trc file:
[ORA-00600: internal error code, arguments: [3712], [1], [1], [0], [445262], [0], [445261],]
Fri Jan 9 16:22:08 2013
Errors in the /d1/app/oracle/oradata/orcl/bdump/orcl_lgwr_1966.trc file:
[ORA-00600: internal error code, arguments: [3712], [1], [1], [0], [445262], [0], [445261],]
LGWR: termination litigation because of the 470 error
Instance terminated by LGWR, pid = 1966
can you please on the same...
Thank youORA-00600: internal error code, arguments: [3712].
ORA-00600 is error internal oracle, you need to check metalink support for this.
Maybe you are looking for
-
Redeclenchables buffered count task of edge
Hi all I worked on 'Buffered Retriggerable counting task dashboard' on a single window input channel, let me describe what I want to achieve: Create a CI to count the rising edges finished with the (for example external sample clock Dev1/di/SampleClo
-
Photosmart 5524: Support for 5524 Photosmart will not print black
Can not get the HP support pages - all links come with a blank page - so hope someone can help. Changed my cartridges as the weak and printing is poor, and now black ink does not print despite showing in high and genuine HP cartridges ink levels. Fol
-
How to upgrade messenger 4.7 to 5.1 windows?
Hello I have messenger windows 4.7 installed in my PC (it has windows XP SP2). I couldn't use it because it does not in the tab options accounts. Any help on this would be greatly appreciated.
-
Win32/CompromisedCert.C alert Windows Defender. What is c?
Hello everyone. I am quite illiterate on the problems of the computer. In general, I try to be a quite safe surfing on the internet and avoid visiting dangerous websites. But today, surprise, I received a Windows Defender on Win32/CompromisedCert.C a
-
Printer Officejet 6500 E709a wire to the router via USB
Can I connect my Officejet 6500 E709a via the USB connection to my router 9100EM Ultraline series 3 model so that it can be seen by both of my PC, which is connected directly to the router via LAN Ethernet ports? If so, what measures are necessary? A