Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
[shivam@localhost ~]$su
enter password then execute below cmd
SELINUX=permissive
after that
:wq!
Setenforce 0
COPY AND PASTE IN TERMINAL
Create new groups named 'oinstall' and 'dba', then create a new user 'oracle' and add it to the 'oinstall'
group.
Parameter Command
semmsl, semmns, semopm, and # /sbin/sysctl -a | grep sem
semmni
This command displays the value of the semaphore parameters in
the order listed.
fs.aio-max-nr = 1048576
fs.file-max = 3240229
kernel.shmall = 18446744073692774399
kernel.shmmax = 18446744073692774399
kernel.shmmni = 4096
kernel.sem = 250 32000 32 128
net.ipv4.ip_local_port_range = 32768 60999
net.core.rmem_default = 212992
net.core.rmem_max = 212992
net.core.wmem_default = 212992
net.core.wmem_max = 212992
sysctl -p
sysctl -a
Next, we need to configure some limits for the oracle user. Specify the max number process and max
number of open files descriptors.
Edit 'limits.conf' file with vim.
Go to terminal and execute this
{{{{==not required vim /etc/security/limits.conf
Paste the configuration below.
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
Save the file and exit vim.==}}}
If you do not have an Oracle account yet, register one and then log in to download 12c for Linux.
https://profile.oracle.com/myprofile/account/create-account.jspx
Oracle Database Software Downloads.
Downloads these files from 4shared
Install zip and unzip to extract the archives.
yum -y install zip unzip
Change owner and group of the '/stage/' directory to the oracle user and oinstall group.
And you will see the GUI installation screen below, there click 'Next'.
At 'Installation Options', choose 'Create and configure a database' and click 'Next'.
Under the 'System Class' section, choose 'Desktop Class' and click 'Next' again.
Typical Installation' info.
• Oracle base: '/u01/app/oracle'
• Software location: /u01/app/oracle/product/12.1.0/dbhome_1
• Database file location: /u02
• Database edition: Default
• Character set: Default
• OSDBA group: dba
• Global database name: Type your own name
• Administrative password: Type your own password
• Confirm password: Type again
• Uncheck the 'Create as Container database'
Click Next.
The Oracle installation is finished and ready for testing. I will try to access Oracle from the command line first.
~$ su enter password
su - oracle
Execute the commands below to set the oracle environment.
To login in to oracle database we need to execute this commands every time
AL32UTF81
SQL>exit;
LINK : https://www.quora.com/How-do-you-check-the-Oracle-database-character-set
TO CREATE A ORACLE 12C DATABASE IN DATABASE
next
and select unicode (all databases should be same or errors will popup during
running process)
summary
finished.
SQL> conn
SQL> system@databasename
passwd:
connected.
>shutdown immediate;
>startup
--------------------------------------------------------
>ALTER SYSTEM SET open_cursors=3000 SCOPE=spfile;
alter system set processes=3500 scope=spfile;
alter system set sessions=2600 scope=spfile;
>shutdown immediate;
\\\
\\\\
>startup
-------------------------------------------------------------
su - oracle
SQL> startup
SQL> exit
cd $ORACLE_HOME
cd bin/
lsnrctl
LSNRCTL> start
LSNRCTL> exit
--------------------------------------------
Create users
drop user admin cascade;
commit;
su - oracle
SQL> startup
{ IF YOU GETTING ANY ERRORS WHILE CREATING USERS EXECUTE THIS CMDS in 12c}
commit;
commit;
commit;
commit;
commit;
commit;
commit;
commit;
create user em identified by shivam;
commit;
commit;
su – oracle
run cmds in terminal
export ORACLE_SID=neosoft
export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1/
export PATH=$PATH:$ORACLE_HOME/bin
# dbca
username : system@databasename
passwd:shivam
dmp file: fbkp.dmp
selecte 1 for full database backup