1. SYS module
1) Processing command-line arguments
Print "Script name is", Sys.argv[0] # Capture script name using sys.argv[0] If Len (SYS.ARGV) > 1: print "There is", Len (sys.argv )-1, "Arguments:" # Use Len (SYS.ARGV)-1 to collect the number of parameters-1 for minus [0] script name for Arg in sys.argv[1:]: #输出除了 [0] all parameters outside Print Argelse: print "There is no arguments!"2. Querying the Extensi
The SYS module is commonly used to process Python runtime configuration and resources so that it can interact with a system environment other than the previous program.1. Import and Function viewImport # Import sys module >>> dir (sys) #dir () method to view the methods available in the moduleNote: If you are in the editor, be careful to declare the code in adv
Tags: oracle 11GR2 enable SYS user auditIn Oracle 11GR2, the login audit information for SYS users is logged by default in the Audit_file_dest directory, but the operation content is not audited.Enable auditing of SYS user action behaviorSql> alter system set AUDIT_SYS_OPERATIONS=TRUE Scope=spfile;System altered.Because Audit_sys_operations is a static parameter,
Tags: option app scott Oracle options admin Partition data entryStarting today with Oracle's powerful database, it has not yet experienced its powerful capabilities. Before I heard that the Oracle installation is very complex, and I just really installed a time later only to know, in fact, the default can be, of course, the speed will be very slow, my I3 processor also compared to the force, 20 minutes less than the fix, my version is 11g 11.12.0. Of course, all the way to the default is not wis
Sysargv [] is used to obtain command line parameters. sysargv [0] indicates the file path of the code. for example, if you input pythontestpy-help in the CMD command line, sysargv [0] indicates testpy. Sysstartswith () is used to determine the beginning of an object, for example, in sys. argv [] is used to obtain command line parameters, sys. argv [0] indicates the path of the code file. for example, enter
Event
SYS. application. init : The script is loaded, before the object is created.
SYS. application. Load Script Loading. The object is created and initialized. pageload ()
SYS. application. Unload Pageunload () occurs in window. Unload ()
Init eventBrowser-basedWindow. onloadEvent,
Triggered only when the page is initialized for the first time. It is
The sys password of the Oracle10g ASM instance sometimes needs to be modified. The modification method is to directly modify the password file of the ASM instance, and the password modification method of the user in the database instance is not
The sys password of the Oracle 10g ASM instance sometimes needs to be modified. The modification method is to directly modify the password file of the ASM instance,
DBA is an object in Oracle. Like role and user, it is a physical object that actually exists in Oracle. sysdba is a kind of conceptual operation object, it does not exist in Oracle Data.
DBA is a set of role corresponding to the operation permissions of objects in the Oracle instance, while sysdba is a conceptual role that represents the identity during logon authentication.
Super Users are divided into two types: sysdba and sysopt. The three letters after sysopt are operator, that is, the perso
About SYS user verification, SYS user is the user with the highest permissions in Oracle, and SYSTEM is a user used for database management. After the database is installed, the passwords of SYS and SYSTEM should be modified immediately to ensure database security. You can change the password in three ways:
Sqlplus/as sysdba;
1. SQL> alter user
Subject: [original] analyze hiberfil. sys
Prepared by: microdebug
Time: 2010-11-09,17: 34: 42
Chain: http://bbs.pediy.com/showthread.php? T = 124505
I was scared when I took this note, because I thought it was useless. But in fact, it is still very valuable in many partial or confidential fields. In view of the small amount of data in China, I wrote a note to share it with you.
Analyze hibernation file
IntroductionWhat's hibernation file?The hibernat
First, the definitionThe SYS module provides a number of functions and variables to handle different parts of the Python runtime environment.Second, commonly used functions1 sys.argv command line argument list, the first element is the program itself path 2 sys.exit (n) exit the program, exit normally exits (0)3 sys.version Get version information for Python interpreter 4 sys.maxint Maximum int value 5 sys.path returns
1)/proc/sys/vm/block_dumpThis file indicates whether block debug mode is turned on to record all read-write and dirty block writeback actions.Default setting: 0, disable block debug mode2)/proc/sys/vm/dirty_background_ratioThis file represents the percentage of dirty data that reaches the overall system memory, triggering the pdflush process to write dirty data back to disk.Default setting: 103)/proc/
SYS and SYSTEM user differences
1 The most important difference, the importance of storing data is different
SYS the base tables and views of all Oracle's data dictionaries are stored in the SYS user, which is critical to the operation of Oracle and is maintained by the database itself and cannot be manually changed by any user. The
Questions raised by sys. dm_ OS _waiting_tasks of SQL Server Applications (I ),
Many users wait through sys when viewing SQL statements. view dm_exec_requests. The waiting type is also obtained through wait_type, sys. dm_ OS _waiting_tasks can also see the difference between session waiting ....
Not much nonsense.
Test version 2012
Field description of
14. sys and OS module sys
In sys, let's talk about the SYS. argv list, which contains command line parameters.
#!/usr/bin/python#filename: sum.pyimport sysdef sum(a, b): 'addtwo numbers' returnint(a) + int(b) if len(sys.argv) == 3: printsum(sys.argv[1], sys.argv[2])else: print'enter two
Recall that every Python module have a built_in __name__ variable that Python sets to the __main__ string Only if the file is run as a program,not when it ' s imported as librarySo in the Python fiel if __name__ = = "__main__": .... Is the top-level code 1 " "2 Aplit and interactively page a string of file of text3 " "4 5 defMore (text,numlines= 15):6Lines =str.splitlines (text)7 whilelines:8Chunk =Lines[:numlines]9Lines =Lines[numlines:]Ten forLineinchChunkPrint(line) One
How to modify the sys password of ASM. Note that the sys password of asm is different from the db password. 10g: WINDOWS: orapwd file =
$ Export ORACLE_SID = + ASM $ asmcmd ASMCMD> passwd sys Enter old password (optional): ****** Enter new password :******
You can also use the asmcmd tool to modify the sys password
Today, the same thing happened in 8i. If you log on with sys, you cannot directly grant the object permission of user a to user B. The following statement reports an error that is not limited:Grant select on usera. Table1 to userb
Later, I found a 9i Database test and found no error.So I checked the document: Oracle Administrator's Guide and found that this feature was added only in 9i or later versions.By querying the permission view, we can see tha
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.