当前位置:网站首页>Install Oracle under Linux, connect local pl/sql to Oracle import table under Linux, and create new user and password
Install Oracle under Linux, connect local pl/sql to Oracle import table under Linux, and create new user and password
2022-07-27 09:10:00 【The gentle wind is attributed to you with a smile】
linux Lower installation oracle, Local PL/SQL Connect Linux Under the oracle Import the table and create a new user and password
establish oracle Users and groups (root)
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
Create directory (root)
mkdir -p /oracle/
chown -R oracle:oinstall /oracle/
chmod -R 775 /oracle/
Modify kernel parameters (root)
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
Press esc Key to exit Enter to execute :wq Save and exit to the terminal interface
/sbin/sysctl -p Make parameters effective
Modify user restrictions (root)
vim /etc/security/limits.conf
Similarly, copy the following into it
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 10240
Press esc Key to exit Enter to execute :wq Save and exit to the terminal interface
Configure environment variables (oracle)
vim .bash_profile
open After this file Press i Edit status Copy the following into it
export ORACLE_BASE=/oracle/12c
export ORACLE_HOME=$ORACLE_BASE/db1
export ORACLE_SID=sgdb SID Is the database instance name The instance name of the database must be consistent with the name of the database !!!!
export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
export EDITOR=/bin/vi
Press esc Key to exit Enter to execute :wq Save and exit to the terminal interface
Make profile effective
[oracle@ localhost~]$ source .bash_profile
Connect FTP( Configure the virtual machine network as a bridge )
decompression :[[email protected] Downloads]$ unziplinuxamd64_12102_database_1of2.zip After decompression, there is a database To open it Then double click. runlnstaller This file
Start installation oracle 了 The installation process is very simple. The next step is Finally, we need to execute two scripts, which is not written here
Next use linux Command configuration listening start-up oracle
1. obtain oracle Example
oracle Under authority :echo $ORACLE_SID
To configure monitor
lsnrctl start
Start database
sqlplus / as sysdba
SQL< startup
because It's turned on here To close once shutdown In the after startup
It's over oracle in the future To start from local PL/SQL Connected to
First, configure monitoring locally to monitor linux This one on oracle
open oracle Self contained Net Manager
Configure listener
newly build Service naming
Connect After finishing test land system The password is the password of the virtual machine there system Yes, there is an ordinary administrator by default sys It's super administrator level Don't have different permissions Here we use system Just log in
test OK after Open the client to see if you can log in
Next, the local oracle Import to linux Under the oracle in
cmd Open command
set dbuser= user name
set dbpassword= password
set dbserver=10.1.1.6:1521/ Database instance name (IP It's database )
set filename=F:\dbback.dmp
utilize exp command
exp user name / password @10.1.1.6:1521/ Instance name file=F:\dbback.dmp enter
export Check after F Discoid dmp Whether the format file exists Then import
You can import through the interface plsql
Can also pass imp command
Empathy imp system/ password @ Database instance name file= The exported file name full=y Import all
Import Log in after success see table Whether the table you imported exists in
Then create your own user name and password , Don't use default system This
First
1. Create a temporary table space This step can be ignored, not necessary
2. Create tablespace
Check the file location before creating
SQL<select name from $datafile;
CREATE TABLESPACE Table space name datafile '/oracle/12c/oradata/database/test.dbf' Here you can customize the file location
3. Create users and passwords
CREATE USER user name IDENTIFIED BY password DEFAULT TABLESPACE Table space name
4. To give permission
grant connect,resource,dba to user name
Then open the PL/SQL Just log in to the user name you just created, and then create a table
Well, that's it .
If you have any questions above, please correct them. Thank you !
边栏推荐
- Linux Installation and remote connection MySQL records
- BEVFormer: Learning Bird’s-Eye-View Representation from Multi-Camera Images via Spatiotemporal Trans
- Restful
- Explanation of binary tree
- Explicit animation in arkui
- 拍卖行做VC,第一次出手就投了个Web3
- Matlab求解微分代数方程 (DAE)
- CUDA programming-05: flows and events
- Flex layout (actual Xiaomi official website)
- Mangodb简单使用
猜你喜欢

5g failed to stimulate the development of the industry, which disappointed not only operators, but also mobile phone enterprises

"Weilai Cup" 2022 Niuke summer multi school training camp 1

Antdesign a-modal自定义指令实现拖拽放大缩小

CUDA programming-05: flows and events

js call和apply
![[interprocess communication IPC] - semaphore learning](/img/47/b76c329e748726097219abce28fce8.png)
[interprocess communication IPC] - semaphore learning

【微服务~Sentinel】Sentinel之dashboard控制面板

苹果降价600元,对本就溃败的国产旗舰手机几乎是毁灭性打击

Restful

Intel, squeezed by Samsung and TSMC, finally put down its body to customize chip technology for Chinese chips
随机推荐
NIO this.selector.select()
ArkUI中的显式动画
Detailed explanation of two methods of Sqlalchemy
The wechat installation package has soared from 0.5m to 260m. Why are our programs getting bigger and bigger?
Easy language programming: allow the screen reading software to obtain the text of the label control
Replace restricts the text box to regular expressions of numbers, numbers, letters, etc
BEVFormer: Learning Bird’s-Eye-View Representation from Multi-Camera Images via Spatiotemporal Trans
Sharing of four open source face recognition projects
对 int 变量赋值的操作是原子的吗?
Matlab求解微分代数方程 (DAE)
Apple cut its price by 600 yuan, which was almost a devastating blow to the collapse of its domestic flagship mobile phone
npm install报错 强制安装
苹果降价600元,对本就溃败的国产旗舰手机几乎是毁灭性打击
函数防抖节流
Matlab drawing skills and examples: stackedplot
Programming style
ArkUI开发框架组件的生命周期
Data interaction based on restful pages
Interface test tool - JMeter pressure test use
全排列递归思路整理