Copyright (c) by CNAPTICS Corporation. All rights reserved.1 INFO Oracle Database 11g: Administration II Presented By: Marc S. Paller, CEO CNAPTICS Corporation P.O. Box 173 New York, NY Contact Information: Business: (646)
Copyright (c) by CNAPTICS Corporation. All rights reserved.2 Accessing the Oracle DB l Oracle db location is on: oit.scps.nyu.eduoit.scps.nyu.edu l Obtain slides from: l Access Database Control: l Access using ssh: –Download and install Putty l l Use host name: oit.scps.nyu.edu $ ksh $..profile –Download and install WinSCP l l Use host name: oit.scps.nyu.edu l Join Oracle. –Go to and create an account.
Copyright (c) by CNAPTICS Corporation. All rights reserved.3 Using Linux l Unix does use \ it uses / to separate on directory from another. l Copying files –cp l cp oracle1.sql oracle2.sql #same directory l cp oracle1.sql../oracle2.sql #to a directory above l cp oracle1.sql../../oracle2.sql#to two directories above l Cp oracle1.sql /next/oracle2.sql#to a directory below l Deleting files –rm l rm oracle1.sql #same directory l rm../oracle1.sql#from directory above l rm /next/oracle1.sql# from a directory below
Copyright (c) by CNAPTICS Corporation. All rights reserved.4 Using Linux l Changing directories –cd../#takes you up one directory –cd /next# takes you down one directory –cd../../#takes you up two directories –cd /next/next#takes you down two directories l Editing files –viVim –emacsAnother editor l Making Directories –mkdir –Can only make directories in your own home directory
Copyright (c) by CNAPTICS Corporation. All rights reserved.5 Using Linux l Removing Directories –rmdir –Can only remove directories in your own home directory l Home directory –Located in the /home directory. –You have complete control over this area of the server.
Copyright (c) by CNAPTICS Corporation. All rights reserved.6 Using Linux l Other important directories in your home directory –web directory l This is where you can place web pages that can be accessed remotely l The URL would be –cgi-bin directory l This is where you can place server side includes and other scripts that you want to access remotely. l The URL would be
Copyright (c) by CNAPTICS Corporation. All rights reserved.7 Creating a User in Oracle l Once you have successfully logged you can access the sql engine by typing: sqlplus l Next, type in for username and password, system/manager. Next, at the sqlplus prompt type in the following command: CREATE USER IDENTIFIED BY DEFAULT TABLESPACE data QUOTA 8M ON data TEMPORARY TABLESPACE temp l Next the user must be granted privileges to access and use the int database and their tablespace. So, next we type the following: GRANT RESOURCE, CONNECT TO