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 SYS module includes a very useful set of services, including a number of function methods and variables, to handle Python runtime configuration and resources so that it can interact with system environments other than the previous program, such as the Python interpreter.(1) SYS.ARGV implementation of parameters passed from outside the program to the programThe SYS.ARGV variable is a list of strings that contain command-line arguments, and the comm
SYS module features many, we introduce some of the more practical features, I believe you will like, and I went into the Python module it!A list of common functions of the SYS module
sys.argv: Implements passing parameters to the program from outside the program.
sys.exit([arg]): Exit in the middle of the program, arg=0 for normal exit.
sys.getdefaultencoding(): Gets the current encoding of
SYS module features many, we introduce some of the more practical features, I believe you will like, and I went into the Python module it!A list of common functions of the SYS module
sys.argv: Implements passing parameters to the program from outside the program.
sys.exit([arg]): Exit in the middle of the program, arg=0 for normal exit.
sys.getdefaultencoding(): Gets the current encoding of
SYS module features many, we introduce some of the more practical features, I believe you will like, and I went into the Python module it!A list of common functions of the SYS module
sys.argv: Implements passing parameters to the program from outside the program.
sys.exit([arg]): Exit in the middle of the program, arg=0 for normal exit.
sys.getdefaultencoding(): Gets the current encoding of
SYS module features many, we introduce some of the more practical features, I believe you will like, and I went into the Python module it!A list of common functions of the SYS module
sys.argv: Implements passing parameters to the program from outside the program.
sys.exit([arg]): Exit in the middle of the program, arg=0 for normal exit.
sys.getdefaultencoding(): Gets the current encoding of
SYS module features many, we introduce some of the more practical features, I believe you will like, and I went into the Python module it!A list of common functions of the SYS module
sys.argv: Implements passing parameters to the program from outside the program.
sys.exit([arg]): Exit in the middle of the program, arg=0 for normal exit.
sys.getdefaultencoding(): Gets the current encoding of
SYS module features many, we introduce some of the more practical features, I believe you will like, and I went into the Python module it!A list of common functions of the SYS module
sys.argv: Implements passing parameters to the program from outside the program.
sys.exit([arg]): Exit in the middle of the program, arg=0 for normal exit.
sys.getdefaultencoding(): Gets the current encoding of
1.
The SYS user has DBA authority and has the SYS mode to log in to the database only through SYSDBA. is the highest-privileged account in the Oracle database
System has DBA authority. But no SYSDBA permissions. Usually use this account to manage the database on it.
2.
(1) SYS--SYSDBA
System--sysoper
(2) STARTUP/SHUTDOWN/DBA Management Two can do
(3)
I doctor became too big to forget the Oracle SYS user and system user password, and after several attempts to log on to system, the system is locked.After some attempt, finally solved. The process is as follows:First, rebuild the sys password file. The Reconstruction method is:1. Open cmd Command window;2, execute orapwd command, its usage is:
C:\windows\system32>orapwdUsage:orapwd file=wher
Program Report! In the concise python tutorial, we can see a short section. importsys is followed by "foriinsys. argv". Where does sys. argv come from? In addition, sys. argv [0] is "we", and sys. argv [1] is "are ". Where did this come from? Did you write it yourself? Where? All the teachers laughed at me! I can see a short section in the python concise tutorial
SYS: has the role or permission of DBA, sysdba, and sysoper (System Operator). It is the user with the highest Oracle permissions and can only Log On As sysdba or sysoper, but cannot log on as normal.System: Has dBA and sysdba permissions or roles. you can log on as a common user.• [Differences between sysdba, sysoper, and DBA]Sysdba User: You can change the character set, create and delete databases, and log on to
Tags:--Different No database system installed Oracle ISQL color log rorToday, with the isql*plus to the SYS user to connect to the database when the ora-28009:connection as SYS should be as SYSDBA or sysoper error, do not know what is going on, Remember when the connection of the time when the error did not report on the past. It is possible that a new library has been built with DBCA, so it is not connecte
Recently, my article has been very popular. I just want to summarize my knowledge from Marco Polo and send it to my blog. But I didn't expect that an article was first published nine times in the morning... If you really think my article is bad, please tell me the reason. Thank you very much.
This week, Marco talked about Linux kernel compilation and Linux kernel modules, which are easy to understand. So I will share my learning achievements with you. First of all, this is just a simple compila
factors:
1. The remote_login_passwordfile parameter in the parameter file, which has the following three values:
NONE: indicates that the Oracle system does not use the password file. users with the SYS permission can log on to the database through OS authentication.
EXCLUSIVE: Only one database instance can use this password file. Only the password file under this setting can contain user information except INTERNAL/
When you log on to the database using the default Oracle SQL plus (for example,), you can use the System user's default password manager to log on to the database.However, if you enter the user SYS and the default password change_on_install, you cannot log on.The following error is reported:Error:
ORA-28009: connection to SYS shoshould be as sysdba or sysoper
Problem Analysis:Usage: conn [ect] [logon] [as
Module (name portion of filename)% (Lineno) d Source line number where the logging call was issued(If available)% (FuncName) s Function name% (Created) f Time when the LogRecord was created (time. time ()Return value)% (Asctime) s Textual time when the LogRecord was created% (Msecs) d Millisecond portion of the creation time% (RelativeCreated) d Time in milliseconds when the LogRecord was created,Relative to the time the logging module was loaded(Typically at application startup time)% (Thread)
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.