• 052-248(新增70题2018)


    You connected to the database using the following connection string:

    CONNECT hr/hr@test.us.oracle.com:1521/mydb

    Which three statements are correct regarding the connection string? (Choose three.)

    A. mydb is a service name.

    B. test.us.oracle.com is a database name.

    C. 1521 is the listener port number.

    D. mydb is a host name.

    E. test.us.oracle.com is a net service name.

    F. hr is a username.

    G. test.us.oracle.com is an instance name.

    Answer: ACF

    connect username/password@IP:port/service(sid)

    CONNECT

    Connects a given username to the specified database.

    Format

    CONNECT username [@connect-identifier];

    Command Parameters

    username

    Represents the username with which you want to connect to the database. You will be prompted for a password after you enter a username and optionally, a connect-identifier.

    connect-identifier

    This parameter is optional. It is an Oracle Net Services connect identifier for the database to which you want to connect. The exact syntax depends upon the Oracle Net Services communications protocol your Oracle installation uses.

    Usage Notes

    • The username and password must be valid for the database to which you are trying to connect. The username you specify must have the SYSDBA privilege. You do not have to include AS SYSDBA on the CONNECT command because SYSDBA is the default setting for this command.

    • If the CONNECT command returns an error, check to see that you specified a valid connect-identifier.

    Command Examples

    Example 1   

    This example connects to the default database on the local system.

    DGMGRL> CONNECT sys;
    Password: password
    Connected.
    Example 2   

    This example connects to a remote database whose connect-identifier is North_Sales.example.com.

    DGMGRL> CONNECT sys@North_Sales.example.com;
    Password: password
    Connected.
    Example 3   

    This example connects to a database using CONNECT '/' so that connection credentials are not visible on the command line:

    DGMGRL> CONNECT /@North_Sales.example.com;
    

    You must set up Oracle Wallet or SSL to use CONNECT '/'. By setting up Oracle Wallet or SSL, you can write a script to securely start and run the observer as a background job without specifying database credentials in the script.

  • 相关阅读:
    android 的通知管理
    java 反射机制
    java基础知识梳理
    spring 知识梳理
    Orange's_1_win7下搭建环境
    编写安全代码:死循环
    我的kindle书单
    [更新Github地址]python学习,自己写了个简单聊天工具mychat
    给VIM和Terminal配色:Solarized
    Hive学习之路 (八)Hive中文乱码
  • 原文地址:https://www.cnblogs.com/Babylon/p/8624365.html
Copyright © 2020-2023  润新知