Escolar Documentos
Profissional Documentos
Cultura Documentos
The 10g release is the database system itself. You need it only if you want to
have databases local to your machine. 10g Client has the SQLPlusWorksheet
application. It will allow you to connect to our Oracle server and/or your local
database. Click on each release above to see the installation notes. There are
additional notes on starting and stopping Oracle 10g, and logging on to Oracle.
Installing 10g
The following is a series of screen snapshots that capture the settings you'll
need. Install Oracle at the top of C: (or some other disk). I don't think Oracle
likes blanks in its path (e.g., like "Program Files").
Select personal edition, provide a database password and remember this
password! Here's the next panel:
Click install. The installer will take a while. You may (or may not) get errors
during installation. In such cases, you may or may not get a correct installation.
When it has not worked, I ended all of my user processes, and started again.
Finally this page appears:
The most important thing to do at this time is to click password management
button. You MUST activate the Scott account (and any others that you want).
You will then be presented with a screen of information that looks like the
following. Copy its contents into a text file for safe keeping.
You're almost done. Search the Oracle installation directory for the tnsnames.ora
file. It should be in directory oracle\product\10.1.0\DB4\NETWORK\ADMIN.
Open it and you'll find an entry like the one below:
ORACLE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = <name of your machine>)(PORT
= 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = oracle)
)
)
Copy this, as we will need to paste it into a corresponding file in the 10g client,
once it is installed. You may have a different name than ORACLE = . This is the
service name (ORACLE or whatever) that you will use to log onto your database.
For reference, here is the tnsnames.ora file that I use for my 10g server.
Remember, I used the name ORACLE for my service name; yours might be
different. Note also that "commando" is the name of my machine.
ORACLE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = commando)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = oracle)
)
)
MICROLAB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle.microlab.cs.utexas.edu)(PORT
= 1521))
)
(CONNECT_DATA =
(SID = orcl)
(SERVER = DEDICATED)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
Please note that the names of these services may be different on your machine,
so modify the above script accordingly.
Choose administrator, Next. The installer will grinds for about 10 minutes.
Click cancel. You're almost done.
Now, search for the tnsnames.ora file in the 10g Client installation. It should be
in oracle\product\10.1.0\Client_2\NETWORK\ADMIN. Do the following:
• Add the Oracle descriptor to this file that you extracted from your 10g
install. (Click here see how to get this). This descriptor will allow you to
log into to your local Oracle database. You can logon as "scott", password
"tiger", and the installation service name that was defined in your Oracle
10g installation (e.g., ORACLE).
• Now add the following additional descriptor. It will allow you to log on as
yourself to our class's Oracle server at school. You log on with your user
name and password, using microlab as the service.
MICROLAB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =
oracle.microlab.cs.utexas.edu)(PORT = 1521))
)
(CONNECT_DATA =
(SID = orcl)
(SERVER = DEDICATED)
)
)
For reference, here is the tnsnames.ora file that I use for my 10g client.
Remember, I used the name ORACLE for my service name; yours might be
different:
MICROLAB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle.microlab.cs.utexas.edu)(PORT =
1521))
)
(CONNECT_DATA =
(SID = orcl)
(SERVER = DEDICATED)
)
)
ORACLE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = commando)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = oracle)
)
)
So you forgot to unlock the Scott account, eh? Here is a suggestion. Login using
SQLPlusWorksheet to oracle as "System", using the password you gave to
system accounts during installation. Then run the following script:
Notes on Oracle 10g Installation
Go to the Oracle download web site:
http://www.oracle.com/technology/software/products/database/oracle10g/index.ht
ml
The 10g release is the database system itself. You need it only if you want to
have databases local to your machine. 10g Client has the SQLPlusWorksheet
application. It will allow you to connect to our Oracle server and/or your local
database. Click on each release above to see the installation notes. There are
additional notes on starting and stopping Oracle 10g, and logging on to Oracle.
Installing 10g
The following is a series of screen snapshots that capture the settings you'll
need. Install Oracle at the top of C: (or some other disk). I don't think Oracle
likes blanks in its path (e.g., like "Program Files").
Select personal edition, provide a database password and remember this
password! Here's the next panel:
Click install. The installer will take a while. You may (or may not) get errors
during installation. In such cases, you may or may not get a correct installation.
When it has not worked, I ended all of my user processes, and started again.
Finally this page appears:
The most important thing to do at this time is to click password management
button. You MUST activate the Scott account (and any others that you want).
You will then be presented with a screen of information that looks like the
following. Copy its contents into a text file for safe keeping.
You're almost done. Search the Oracle installation directory for the tnsnames.ora
file. It should be in directory oracle\product\10.1.0\DB4\NETWORK\ADMIN.
Open it and you'll find an entry like the one below:
ORACLE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = <name of your machine>)(PORT
= 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = oracle)
)
)
Copy this, as we will need to paste it into a corresponding file in the 10g client,
once it is installed. You may have a different name than ORACLE = . This is the
service name (ORACLE or whatever) that you will use to log onto your database.
For reference, here is the tnsnames.ora file that I use for my 10g server.
Remember, I used the name ORACLE for my service name; yours might be
different. Note also that "commando" is the name of my machine.
ORACLE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = commando)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = oracle)
)
)
MICROLAB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle.microlab.cs.utexas.edu)(PORT
= 1521))
)
(CONNECT_DATA =
(SID = orcl)
(SERVER = DEDICATED)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
Please note that the names of these services may be different on your
machine, so modify the above script accordingly.
Choose administrator, Next. The installer will grinds for about 10 minutes.
Click cancel. You're almost done.
Now, search for the tnsnames.ora file in the 10g Client installation. It should be
in oracle\product\10.1.0\Client_2\NETWORK\ADMIN. Do the following:
• Add the Oracle descriptor to this file that you extracted from your 10g
install. (Click here see how to get this). This descriptor will allow you to
log into to your local Oracle database. You can logon as "scott", password
"tiger", and the installation service name that was defined in your Oracle
10g installation (e.g., ORACLE).
• Now add the following additional descriptor. It will allow you to log on as
yourself to our class's Oracle server at school. You log on with your user
name and password, using microlab as the service.
MICROLAB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =
oracle.microlab.cs.utexas.edu)(PORT = 1521))
)
(CONNECT_DATA =
(SID = orcl)
(SERVER = DEDICATED)
)
)
For reference, here is the tnsnames.ora file that I use for my 10g client.
Remember, I used the name ORACLE for my service name; yours might be
different:
MICROLAB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle.microlab.cs.utexas.edu)(PORT =
1521))
)
(CONNECT_DATA =
(SID = orcl)
(SERVER = DEDICATED)
)
)
ORACLE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = commando)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = oracle)
)
)
That should do it. If you want to create new accounts, try this: