PLSQL工作依赖于 OCI.DLL 和其他一些Client带的文件,所以必须提供.通过环境变量 TNS_ADMIN找到LISTENER.ORA, tnsnames.oRA,从而建
思路: PLSQL工作依赖于 OCI.DLL 和其他一些Client带的文件,所以必须提供. 通过环境变量 TNS_ADMIN找到LISTENER.ORA, tnsnames.oRA,从而建立连接.
步骤:
1.安装Oracle_client
2. 进入PLSQL 设置 OCI.DLL 文件路径和其所在目录的路径
3. 在ocl.dll同目录建立一个 NETWORK目录,该目录中建立ADMIN目录.
4. 新建两个文件 LISTENER.ORA, tnsnames.oRA(记事本改后缀名即可)
LISTENER.ORA内容:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = bjyw-zhugecs3.360buyAD.local)(PORT = 1521)) # bjyw-zhugecs3.360buyAD.local 本机的计算机全名
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(SID_DESC =
# 数据库名
(GLOBAL_DBNAME = mydb)
#本机的oracle安装路径
(ORACLE_HOME = D:\app\weihaifeng\product\11.1.0\db_1)
# 数据库实例名 和sid保持一致
(SID_NAME = mydb)
)
)
tnsnames.oRA(配置数据名称和ip地址的对应关系) 内容
#PLSQL 启动的时候 数据库名称
MYDB =
(DESCRIPTION =
(ADDRESS_LIST =
#数据库IP 和端口
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.144.188)(PORT = 1521))
)
(CONNECT_DATA =
#数据库实例
(SERVICE_NAME = mydb)
)
)
即可.

The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

Article discusses strategies for handling large datasets in MySQL, including partitioning, sharding, indexing, and query optimization.

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]

The article discusses dropping tables in MySQL using the DROP TABLE statement, emphasizing precautions and risks. It highlights that the action is irreversible without backups, detailing recovery methods and potential production environment hazards.

Article discusses using foreign keys to represent relationships in databases, focusing on best practices, data integrity, and common pitfalls to avoid.

The article discusses creating indexes on JSON columns in various databases like PostgreSQL, MySQL, and MongoDB to enhance query performance. It explains the syntax and benefits of indexing specific JSON paths, and lists supported database systems.

Article discusses securing MySQL against SQL injection and brute-force attacks using prepared statements, input validation, and strong password policies.(159 characters)


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

SublimeText3 English version
Recommended: Win version, supports code prompts!

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver CS6
Visual web development tools

WebStorm Mac version
Useful JavaScript development tools