Package DBMS_AUDIT_MGMT running under any other user than SYS
Hello
I need manage audit on 11g database log using the DBMS_AUDIT_MGMT package. I want to start the process of cleaning under the CENTRUMADMIN user.
Everything works under sys, but under CENTRUADMIN procedure does not work.
I already try adding this privilege:
GRANT EXECUTE ON DBMS_AUDIT_MGMT TO CENTRUMADMIN;
Code below shows my procedure:
CREATE OR REPLACE PROCEDURE PURGE_AUD_TRAIL_11 (NUMBER pocet_dnu)
AS
v_timestamp DATE;
BEGIN
SELECT MAX(NTIMESTAMP#) IN the sys.aud v_timestamp $ WHERE NTIMESTAMP # < (SYSDATE - pocet_dnu);
INSERT INTO centrumadmin. AUD$ _BACKUP SELECT * FROM sys.aud$ WHERE NTIMESTAMP # < = v_timestamp;
DBMS_OUTPUT. Put_line (' case odmazani pro starsich zaznamu:' | v_timestamp);
() dbms_audit_mgmt.set_last_archive_timestamp
audit_trail_type = > dbms_audit_mgmt.audit_trail_aud_std,
last_archive_time = >
TO_TIMESTAMP (SYSDATE - pocet_dnu).
rac_instance_number = > null
);
() dbms_audit_mgmt.clean_audit_trail
audit_trail_type = > dbms_audit_mgmt.audit_trail_aud_std,
use_last_arch_timestamp = > TRUE
);
COMMIT;
EXCEPTION WHEN OTHERS THEN
ROLLBACK;
LIFT;
END;
/
Any ideas what a privilege it am I missing or if she has a problem elsewhere?
Honza
I found this solution and everything works under the user CENTRUMADMIN:
IF
NO SYS. DBMS_AUDIT_MGMT.IS_CLEANUP_INITIALIZED (SYS. DBMS_AUDIT_MGMT. AUDIT_TRAIL_AUD_STD)
THEN
SYS. DBMS_AUDIT_MGMT. () INIT_CLEANUP
audit_trail_type-online SYS. DBMS_AUDIT_MGMT. AUDIT_TRAIL_AUD_STD, - Journal AUD
default_cleanup_interval-online 24 / * hours * /);
END IF;
() SYS.dbms_audit_mgmt.set_last_archive_timestamp
audit_trail_type => SYS.dbms_audit_mgmt.audit_trail_aud_std,
last_archive_time =>
TO_TIMESTAMP (SYSDATE - pocet_dnu).
rac_instance_number-online null
);
() SYS.dbms_audit_mgmt.clean_audit_trail
audit_trail_type => SYS.dbms_audit_mgmt.audit_trail_aud_std,
use_last_arch_timestamp-online TRUE
);
Honza
Tags: Database
Similar Questions
-
Hi all
Migration of oracle db user of an operating system to any other user of system operating in an environment of rhel 6 with oracle 11.2.0.3.0.
Suppose I have a database running with os user user1
I have another user user2 where I want the database runs and not on User1
Please let me know how to achieve this goal,
Thank you.
Have you looked on the MOS for this?
I thought to do exactly this, but ultimately I didn't actually accomplish. Despite the fact, it may be an interesting feature...
Something like this:
S ' ensure that two users are members of the same groups
-Database stop
-As the former owner, change the ownership of all files in Oracle Home, inventory of the Oracle and all data files, to the new. On Linux/Unix, only the owner (and root) can change the ownership of files, so all files/directories not belonging is not to the former user, will obtain authorization refuses, legitimately so. The new user for example cannot 'take' the files, because they are not his. Only the old can 'give' files. Of course, root can do as well, if you have this permission.
-Configure the new user to set up the environment correctly (ORACLE_HOME,..)
-Start of the database
-Do NOT remove the old user of the system, but do not give him a different password
That's what I think
-
In the United States, I can use selector locale quick to get us to the locale of Russia (ru - RU), but in Russia, it does not work to go the other way or any other premises than elsewhere. After you have selected the local new and restart firefox, it remains on the Russian locale. Y at - it a fix for this problem?
This has happened
Each time Firefox opened
== Looks like it started with a newer version of firefox, but this may have been coicidental
You have other language packs languages installed?
Tools > Modules > languagesThere is no module language en-US, to achieve that you must install the version of Firefox en-US and install other languages in the version.
http://releases.Mozilla.org/pub/mozilla.org/Firefox/releases/3.6.6/Win32/XPI/ -
Run DBMS_SQLTUNE as a user not sys, getting ORA-13774
Hello
I am trying to run DBMS_SQLTUNE as a user not sys and
ORA-13774: not sufficient privileges to select data in the repository of the workload
ORA-06512: at "SYS." DBMS_SYS_ERROR', line 79
ORA-06512: at "SYS." PRVT_SQLADV_INFRA', line 240
ORA-06512: at "SYS." DBMS_SQLTUNE', line 542
ORA-06512: at line 4 level
I grant all on
SYS. DBA_HIST_BASELINE
SYS. DBA_HIST_SQLTEXT
SYS. DBA_HIST_SQLSTAT
SYS. DBA_HIST_SQLBIND
SYS. DBA_HIST_OPTIMIZER_ENV
SYS. DBA_HIST_SNAPSHOT
but still get the error.
Anyone can share a thought?
Thank you
AnatoliyHandle: asmirnov
Status level: Beginner
Join date: January 10, 2001
Messages total: 327
Total Questions: 79 (47 pending)
many questions and so few answers.
:-(It works for me.
SQL> !cat hr-privs.sql grant select on sys.DBA_HIST_BASELINE to hr; grant select on sys.DBA_HIST_SQLTEXT to hr; grant select on sys.DBA_HIST_SQLSTAT to hr; grant select on sys.DBA_HIST_SQLBIND to hr; grant select on sys.DBA_HIST_OPTIMIZER_ENV to hr; grant select on sys.DBA_HIST_SNAPSHOT to hr; GRANT ADVISOR TO HR; SQL> show user USER is "SYS" SQL> connect hr/oracle Connected. SQL> @tt PL/SQL procedure successfully completed. SQL> BEGIN dbms_sqltune.execute_tuning_task (task_name => 'vega_tuning_task'); END; / 2 3 4 PL/SQL procedure successfully completed.
http://www.orafaq.com/node/1837
-
Access to any other user response
Hi all
How to access other users answer the presentation server. Help, please.
Thank you
JingleHello
Click on setting > Administration > manage privileges > access > access to the answers > click on anyone you are add users or groups from here
Hope its helpful for you.
Thank you
-
The computer is a HP Envy 17 laptop. Firefox does not appear on the list of the Manager of process tasks or applications. System Restore has not fixed the problem. Google Chrome works well. Internet Explorer works well until I tried to download Firefox. Then it crashes too. This pc work Firefox very well since I bought it 10 months ago. I upgraded FF3 4 then 5 with no problems. All of a sudden yesterday it stopped working. There is no error message and of course FF does not start because there is no list of Firefox in the process tasks or applications Manager. I tried to uninstall Firefox, then tried to download usingInternet explore, but when I click on the download button on the site of Mozilla, Internet Explorer crashes. I did a system restore to 16/08/11 when Firefox was still working. This restored the program but it still does not work. Google Chrome seems to work very well. My internet access is through wifi via a Verizon Fios Actiontec router. I use Symantec Endpoint Protection against the virus and make having all programs Norton or Skype do not appear in the Panel. My pc is set for automatic updates from Microsoft and HP. They both say that my software is up to date. Y at - it a fix for this problem or is it a sinister plot by Microsoft to force us to use Internet Explorer?
Download Firefox using some other browser (Chrome, Safari, IE) of one of the mirrors here:
Uninstalling Firefox
- https://support.Mozilla.com/en-us/KB/uninstalling%20firefox
- DO NOT SELECT DELETE THE SETTINGS AND DATA OF THE USER
Install Firefox on Windows
Check and tell if its working.
-
Snapshot can work under any other RDBMS collapses...
Hello.
I have a question for the snapshot function. When I stop db that provide data in another db via dblink and instant.
database a data snapshot of database through B. If I shotdown database A, advised me that the user can search with database snapshot B or not.
Database A - DB link - database B
Table Z - instant-> table Z'
Array-snapshot-> table Y'
Table X - instant-> table X'
...
Could someone let me know user can run sql choose?
Thank you.A snapshot is a physical copy of the data.
Thus, a snapshot of database 'B' in the table 'XYZ' in the database 'A' is in fact internally maintained as a table of database 'B '. Users can still query capture instant, even when the database 'A' is out of service.
I was addressing the caveat is that if you have set FULL refresh as they use TRUNCATE, the next run of the snapshot update tronquerait all data in the database 'B '. And you would not be able to recover the data truncated (unless restore you a copy of 'B' or restarted 'A' and do the update).Even in the opposite case, if the database 'A' is down and you have not disabled the work of refreshment, Oracle will keep try again them several times until each of them fails 16 consecutive times.
You can see the error messages in the file database alert.log 'B' and follow-up for each update files failed.You must disable (for example mark them as BROKEN if they run like DBMS_JOBs) or delete the jobs of refreshment for the term 'A' is broken.
You can re-enable or restore jobs in the database 'B' after 'A' returns to the top. -
Hoping that this is not too off-topic, but I'm really running out of ideas...
I have this trading program full license (TMPGEnc MPEG Smart Renderer 4.2) who has worked on my Win7/64 for several months, and in recent weeks, has become excruciatingly slow for every user interaction (but not for real computing), making it essentially unusable (1'30 to launch vs 3 normally, 30 "seconds waiting to launch a 'new project' vs.)<1s normally,="">1s>
When 'pending' launch application or respond to a command, 12% of the full CPU (8 logical cores on CPU Core i7 third Gen) is used by a single process: the offending application (look at the Task Manager, 1 logical core is used to +/-80%, a second for about 15% of this process). All other processes are still at 0% CPU usage.
Of course, I tried & tested many things including full-/ re-installation of the application with a careful cleaning etc., corresponding registry entries software disabling AV (Avira free), .net Framework Repair Tool, etc... no change! The disc has been checked and is OK.
Some interesting tips:
This app worked fine for several months before the problem started abruptly a few weeks; I tried to uninstall .net Framework 4.5 updates to a date prior to the date of beginning of apparent problem, does not; I came back to an earlier version of the offending software: no change.
But the most interesting observation is that the app works well at the launch of any other user account on the same machine Win7/64 (whether with the normal credentials or admin), so for me that means there should be no conflict of software on the computer, only something in my profile of the main user who causes the app behave so slowly.
At this point, the Helpdesk of the seller looks distraught - too.
Suggestions for troubleshooting?
BTW: I consider that this computer is well managed, and no rogue or untrusted app sleeps there. my main profile is fairly heavily customized for my work, so I want to avoid workaround last resort would be to create a new user account as work environment main (besides the fact that I hate not to find the root cause of the problem)
Hello
Given that this problem is specific to the user's profile. I suspect that some programs that are installed or some settings in the profile translates into this problem. You can fix a corrupted user profile by following the steps in this article:
http://Windows.Microsoft.com/en-us/Windows/fix-corrupted-user-profile#1TC=Windows-7
I hope this helps.
-
10 GB running under LocalSystem on Windows Server 2003 account
Hello
I have an Oracle 10 G database running on Windows Server 2003 SP2. I created the database and everything works fine, while the service is running under the local system account by default. However, when I change the user that the service is running in regards to a different account of the database starts and opens and I can log on as unreserved SYS using a connection but I'm unable to open a session any other user through the listener. The listener responds to TNSpings, and everything seems OK. When I turn it on to the local system user, yet once it all works very well.
Can anyone offer advice or assistance?
Thank you
RobIt is probably because the listener is still running under the local system account. Have you tried changing the listener service runs under the same account as the Oracle service?
-
Windows vista does not open and goes to the other user that does not exist
I try to open to all modes goes directly to any other user who has never been assigned a password. Now Icant open workstation to all the .whassup
Hello
1. don't you make changes on the computer until the problem started?
2. how many accounts do you have on the computer?
3 have you tried to start the computer in Safe Mode?If you are unable to start the computer in safe mode, and then try to run a system restore from the System Recovery Options menu.
See these articles for help:
http://Windows.Microsoft.com/en-us/Windows-Vista/what-are-the-system-recovery-options-in-Windows-Vista
http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore
http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questionsKind regards
Afzal Taher
Microsoft technical support engineer -
When the machine starts, it takes a screen for other users. I've never had any created user account. When I try to recovery of windows or safe mode, it is always up to any other user. I can't go in front of her. Please tell me how to connect to the system
Hi matthewmarzullo,
1. did you of recent changes on the computer?
2 when was the last time it was working fine?
3. you receive an error message?
4 are. what other user account you referring?
Your question does contain all the required information necessary for us to help you. Please provide more relevant information to continue troubleshooting as a result.
How to ask a question
-
How to restrict other users to access a local drive in FAT format in windows 8
I have a windows 8 PC with two hard disk partitions: one is in NTFS and FAT32. I want the FAT32 drive is not not accessible to any other user unless the administrator account. I tried to change the permissions, but ACL is not available for FAT systems. I don't want to format the drive to NTFS. Please suggest a way to deny access to that drive other users, or a way to make the player invisible to users.
Hi Surya,
You can use BitLocker Drive encryption to protect your files on a disc. BitLocker can help the hacks to access the files on the system, that they rely on to discover your password, or to access your drive by physically removing from your PC and install it in another. You can always connect to Windows and use your files as you normally would.
I suggest you to see the following link for more information on Bit Locker.
http://Windows.Microsoft.com/en-us/Windows-8/BitLocker-Drive-encryptionSee also the link: http://technet.microsoft.com/en-us/library/dd875544(v=ws.10).aspx
Post us the results after trying the steps above.
-
Show only my document when I connect &; share with other users
Hi friends,
I created the file browser option in my application. Document properly inserted in to the table.
Now I want to pretend I connection then I don't show my document and report in case, I want to share my document with any other user, so how can I share my document with any other user in the application.
My Table are
is my table ok to make all these quary.if not plese suggest me how column I add to it.CREATE TABLE "CRM_DOC_FILE" ( "ID" NUMBER, "NAME" VARCHAR2(500), "FILE_OBJ_ID" NUMBER, "MIME_TYPE" CLOB, "DOC_SIZE" NUMBER, "BLOB_CONTENT" BLOB, "DESCRIPTION" VARCHAR2(500), "UPLOAD_DATE" CHAR(25) ) /
How can I do that.
Thank youHello
Yes you can do it.
Make the LIST OF LOVS you used as username, the name of the document.
Now in report attribute change column, the region in the attributes of the column select "display as text (based on LOV, does not save the State)" on "display as".
And specify the name of LOV the timely "LOV" of the region in the list of values.
Kind regards
Patel Kartik
------------------------------------------------------------------------
http://patelkartik.blogspot.com/
http://Apex.Oracle.com/pls/Apex/f?p=9904351712:1 -
other products EMP which runs under the user who installs the product
Hello
We have an EMP 11.1.2.1 installation on which we decided to install the Calc Manager. This server has Foundation, logic of web, planning and Reporting and analysis components. Then we reconfigured Workspace, GestionnaireCalc, and Shared Services.
Initially our process would run under the SYSTEM account even if I start using my ID. After reconfigure it, the process of Foundation and GestionnaireCalc run aunder the user to launch the process. Rest of the process as planning still run under the system account. So when disconnect us from the Foundation and treated GestionnaireCalc gets killed.
Also, in the task manager the name of the process not appears as java.exe instead of HyS9FoundationServices
After looking around a bit, I found differences in the .properties file.
New file after reconfig .properties:
context = workspace
interval = 5000
validation. Context = Workspace/Status
Checker = foundation
Server.Name = FoundationServices0
wait = true
Domain.Location=E\:\\Oracle\\Middleware\\user_projects\\domains\\EPMSystem
Server.port = 28080
type = j2ee
Timeout = 500000
Softly.Depends = OHS
* the host and admin url entries deleted
Previous configuration file:
name = HyS9FoundationServices
context = workspace
interval = 5000
validation. Context = Workspace/Status
Checker = foundation
Server.Name = FoundationServices0
wait = true
Server.port = 28080
type = service
Timeout = 500000
Softly.Depends = OHS
* the host and admin url entries deleted
Might help with any suggestions or pointers? Thank you.
Kind regards
Savio
Seems you have deselected "Create Windows Services for configured components" under "Hyperion Foundation" > "configure common settings."
Re-run Setup, select "Configure common settings" and "Deploy to the application server" under "Hyperion Foundation" and all the other web apps that have had the Starter changed properties, select "Create Windows Services for the configured components" and deploy web applications.
See you soon
John
-
A new file mvzcc.sys was created under the folder system32/drivers on my widows vista. I managed to clean some viruses and malware on my computer the past 2 days, but this file is created during these days of 'clearing '. (its size is 841 KB)
Can someone tell me if it's a windows file or any other known file software (or perhaps a driver file)?
I couldn't find anything on the internet, and when I tried to remove it using the method mentioned here - http://www.howtogeek.com/howto/windows-vista/how-to-delete-a-system-file-in-windows-vista/
I got an error saying that "a device attached to the system does not work.
Please advice.
Thank you!
Hello
No info on Google so this file is probably malware - other than this error there has been another
indications of malware?You can submit them for that specific file control:
http://www.VirusTotal.com/
http://VirusScan.jotti.org/enhttp://www.ThreatExpert.com/fileScan.aspx
===================================
No one program cannot be used to detect and remove any malware. Added that often easy to
detect malware is often accompanied by a much more difficult to detect and remove the payload. If it is better
to be too full now than paying the price much later. Check with them to an extreme overdose
point and then run the cleaning only when you are sure that the system is clean.It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run the
in the regular when windows you can.Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone. (If Rootkits
UnHackMe execution)Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
Malwarebytes - free
http://www.Malwarebytes.org/Run the malware removal tool from Microsoft
Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.
You should get this tool and its updates via Windows updates - if necessary, you can download
It's here.Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
(Then run MRT as shown above.)Microsoft Malicious - 32-bit removal tool
http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=enMicrosoft Malicious removal tool - 64 bit
http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=enalso install Prevx to be sure that it is all gone.
Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
Prevx - Home - free - small, fast, exceptional CLOUD protection, working with other security programs.
It is a single scanner, VERY EFFICIENT, if it finds something to come back here or use Google to see
How to remove.
http://www.prevx.com/ <-->-->
http://info.prevx.com/downloadcsi.asp <-->-->Choice of PCmag editor - Prevx-
http://www.PCMag.com/Article2/0, 2817,2346862,00.aspTry the demo version of Hitman Pro:
Hitman Pro is a second scanner reviews, designed to save your computer from malicious software (viruses,
Trojan horses, rootkits, etc.). that has infected your computer despite all security measures that you have
taken (such as the anti-virus software, firewall, etc.).
http://www.SurfRight.nl/en/hitmanpro--------------------------------------------------------
If necessary here are some free online scanners to help the
http://www.eset.com/onlinescan/
http://OneCare.live.com/site/en-us/default.htm
http://www.Kaspersky.com/virusscanner
Other tests free online
http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1--------------------------------------------------------
Also do to the General corruption of cleaning and repair/replace damaged/missing system files.
Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup
Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN
Enter this at the command prompt - sfc/scannow
How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
generates in Windows Vista cbs.log
http://support.Microsoft.com/kb/928228Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.
How to run the check disk at startup in Vista
http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html-----------------------------------------------------------------------
If we find Rootkits use this thread and other suggestions. (Run UnHackMe)
I hope this helps.
Rob - bicycle - Mark Twain said it is good.
Maybe you are looking for
-
Stop Ad Block Plus sign disappeared
using Firefox latest version - Ad Block Plus symbol has disappeared. Some websites that I use need me to, so I can read their content. I uninstalled and reinstalled Ad Block - still doesn't work - even when I disable Ad Block the site it still shows
-
HP elitebook 2540p: can't find any driver for windows 10
I amn't get a driver for my Hp elitebook 2540p after 10 windows operating system upgrade. As built in camera does not work after upgrade to win 10(64 bit)
-
HP Z420: Z420 replacement HP Motheboard
Hello The motherboard of my hp z420 workstation is a failure (problems with the slot machines, boot etc...). Now, my question is this: is the only option to buy another motherboard from z420 or could it be an opportunity to upgrade (for example, by b
-
Adjustment of the non-linear curve - maximum iterations exceeded (error-23026)
Hello In my application, I use the curve non-linear adjustment VI (Levenberg-Marquardt) to adapt the data acquired continuously using a task DAQmx. Often in the course of the implementation of the instrument, the curves are not yet "adaptable" and ma
-
I have a HP Envy 700-010xt I tried to add a secondary disk to start linux CentOS 7.0. I don't know what happened, but I tried to change e BIOS to select the CentOS as main boot drive. Now, when the computer comes on, the keyboard active briefly and t