In Oracle8i's PL/SQL, I run the following script:
----------------- Connect system/manager as sysdba; Create Database DB2 Controlfile Reuse Logfile 'C:WINDOWSDESKTOPDB2.log' Size 1M Reuse Datafile 'C:WINDOWSDESKTOPDB2.ora' Size 10M Reuse Autoextend on Next 10M Maxsize 200M; --------------Why does the program say that I do not have the privilege? I can't create a new database? How can I create a new database?
SYSTEM does not have these privileges in order to be able to create your database. Instead, you'll have to "CONNECT INTERNAL" through Server Manager, or "CONNECT SYS/change_on_install AS SYSDBA". Then you will be able to issue the CREATE DATABASE command.
Only after the database has been created will you be able to grant SYSTEM the SYSDBA privileges. But by then, the database has been created, so why bother?
For More Information
- Dozens more answers to tough Oracle questions from Brian Peasland are available.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
Dig Deeper on Oracle database design and architecture
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.