oracle| Create | data | Database 1. Parameter setting when database is installed
The following database has a version of Oracle 9I (9.2.0), and when the database is installed, the database system creates a database instance, where the installation directory is: \oracle, the database name and the database SID number are entered: ora9i, The character set must be selected as: ZHS16GBK (otherwise it will be difficult to operate in Chinese after the cross-platform operation).
2. Creation of database users, assignment of permissions
After the database installation is complete, there are two system-level users:
1, the system default password is: Manager
2, sys default password is: Change_on_install
Locate the Sqlplus program in the \oracle\product\9.2\bin in the installed database directory, and run:./sqlplus system/manager@ora9i
Use System users to create their own users, permissions, and SQL statements as follows:
1. Create User:
Create user username identified by pwd default tablespace users temporary tablespace Temp;
2. User authorization
Grant CONNECT,RESOURCE,DBA to business;
3. Submit
Commit
3. Create a database with a database script
As described above, use Sqlplus to username user login, enter: @ Create the script name of the database. SQL carriage return, you can create tables, views, stored procedures, and so on in the database.
Note: The above creation user process can make the user's table without the system automatically generated n multiple temporary tables.
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:
[email protected]
and provide relevant evidence. A staff member will contact you within 5 working days.