Sqlplus log in and Plsql login differences

Source: Internet
Author: User


Here are two ways to log in, with Sqlplus login need to enter the host Word:

If you are using native Sql*plus to connect to the native database, the host string can be empty.

If you are connecting to an Oracle database remotely from XP, you can use the following methods
1. Start Oracle related server in Windows service;
2, in the XP command line with "Sqlplus/nolog" Login to SYSDBA Connection database ("Conn/as sysdba");
3, with "select name from V$database;" The name is the host string;
Use "SELECT * from Global_name;" View the global domain name.

What is the format of the Oracle Sqlplus connection database host string?

is the name of your database,
Search for Tnsnames.ora file name files under the Oracle installation path, open with text

ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = xupeijiao-pc) (PORT = 1521))
(Connect_data =
(SERVER = dedicated)
(service_name = ORCL)
)
)

Inside something similar to this format, ORCL is what you call the host string, which is determined by your tnsname

File.

Note: If you use this method to log in, you may not be able to log in with a SYSDBA error, and your password will be changed to: your password +as sys

Dba.






Sqlplus log in and Plsql login differences

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.