Your tnsnames.ora file has the following entry for the service alias ORCL:  ORCL =  (DESCRIPTION =  (ADDRESS = (PROTOCOL = TCP) (HOST = 10.156.24.216) (PORT = 1521))   (CONNECT_DATA =  (SERVER = DEDICATED) (SERVICE_NAME = orcl.oracle.com)   )   )   The T

题目

Your tnsnames.ora file has the following entry for the service alias ORCL:  ORCL =  (DESCRIPTION =  (ADDRESS = (PROTOCOL = TCP) (HOST = 10.156.24.216) (PORT = 1521))   (CONNECT_DATA =  (SERVER = DEDICATED) (SERVICE_NAME = orcl.oracle.com)   )   )   The TNSPING command executes successfully when tested with ORCL but you are not able to connect to the database instance with the following command:  SQL> CONNECT scott/tiger@orcl  What could be the reason for this?()

  • A、The listener is not running at the server.
  • B、The TNS_ADMIN environmental variable is set to a wrong value.
  • C、The orcl.oracle.com database service is not registered with the listener.
  • D、The DEFAULT_DOMAIN parameter is set to a wrong value in the SQLNET.ORA file.

相似考题
更多“Your tnsnames.ora fil”相关问题
  • 第1题:

    阅读以下函数说明和C语言函数,将应填入(n)处的字句写在对应栏内。

    【说明】

    编写程序,利用带参数的主函数main(),实现二进制文件的复制。比如,若该程序已生成可执行文件filebin.exe,在DOS操作系统命令状态下键入如下命令行:

    filebin f0.fil f1.fil

    则实现将已存在的二进制文件f1.fil依原样复制给名为f0.fil的二进制文件。

    【函数】

    include<stdio.h>

    void fcopy(FILE *fout, FILE *fin)

    {

    char k;

    do{

    k=fgetc((1));

    if(feof(fin))

    break;

    fputc((2));

    }while(1);

    }

    void main(int argc,char *argv[])

    {

    FILE *fin,*fout;

    if(argc!=(3))

    return;

    if((fin=fopen(argv[2],"rb"))==NULL)

    return;

    fout=(4);

    fcopy((5));

    fclose(fin);

    fclose(fout);

    }


    正确答案:(1)fin (2)kfout (3)3 (4)fopen(argv[1]"wb") (5)foutfin
    (1)fin (2)k,fout (3)3 (4)fopen(argv[1],"wb") (5)fout,fin 解析:本题考查用C语言对二进制文件的操作。
    题目要求程序实现二进制文件的复制。此题的关键是我们对文件基本操作的掌握,如文件的打开,对文件内容进行读/写等。下面来具体分析程序。
    第(1)空是在复制函数fcopy()中,这个函数的功能是对文件进行复制,函数中的两个参数分别是指向被操作的两个文件的指针。此空是函数fgetc()的参数,这个函数的作用是从文件中逐个读字符,其参数是文件要读的地址,结合后面的if(feof(fin)),可以很清楚地知道,当前操作的文件是指针fin指向的文件,因此此空答案为fin。
    第(2)空也在复制函数fcopy()中,是函数fputc()的参数,这个函数的作用与函数fgetc()相反,是往文件中写内容,其参数是当前文件中要写的内容和地址。根据题目的意思,应该是往另一个文件中写内容,因此此空答案为k,fout。
    第(3)空在主函数中,此空是一个条件判断语句的条件,看它的内容是否等于变量argc的内容,如果不等,则程序返回。题目中要求在DOS操作系统命令状态下键入命令行“filebin f0.fil f1.fil”后,实现将已存在的二进制文件f1.fil依原样复制给名为f0.fil的二进制文件。那么主函数参数argc的值应该等于3,是后面argv[]指针数组中内容的个数,而数组中的内容分别是argv[0]="filebin",argv[1]="f0.fil",argv[2]="f1.fil",因此此空答案为3。
    第(4)空是给指针变量fout赋一个值,或者说是让指针变量fout指向该地方,从上面的程序中知道指针变量fout指向一个文件,那么此空的任务就是打开一个文件,在 C语言中打开一个文件用函数fopen(),这个函数一般有两个参数,第一个参数是要打开的文件名(指针数组argv[]的第二个元素),第二个参数是对文件的操作属性,这里要往文件中写数据,因此此空答案为fopen(argv[1],"wb")。
    第(5)空是复制函数fcopy()的两个参数,程序到这里,这两个参数应该很好确定了,第一个参数是指向被写文件的指针变量fout,而第二个参数是指向被读文件的指针变量fin,因此此空答案为fout,fin。

  • 第2题:

    以读写方式打开一个二进制文件fil2,fopen函数的正确的调用方式是:()

    A、FILE *FP; FP=fopen("fil2","r");

    B、FILE *FP; FP=fopen("fil2","rb");

    C、FILE *FP; FP=fopen("fil2","wb+");

    D、FILE *FP; FP=fopen("fil2","rb+");


    参考答案CD

  • 第3题:

    电子枪“FIL”灯变红,故障原因是()。

    • A、电子枪高压线路故障
    • B、真空室底下门没有关好
    • C、电子枪灯丝有问题
    • D、电子枪电流回路故障

    正确答案:C

  • 第4题:

    When you use the Oracle Net Configuration Assistant to specify the naming method, which file is updated?()

    • A、INIT.ORA
    • B、SQLNET.ORA
    • C、LISTENER.ORA
    • D、TNSNAMES.ORA

    正确答案:D

  • 第5题:

    使用root用户FTP连接服务器时报错,无法连接原因为()

    • A、登录密码错误
    • B、端口号错误
    • C、配置bashshell时,/etc/security/login.cfg”文件配置错误
    • D、“tnsnames.ora”文件配置错误

    正确答案:A,B,C

  • 第6题:

    客户端用于网络连接的两个配置文件文件是()

    • A、TNSNAMES.ORA和SQLNET.ORA
    • B、TNSNAMES.ORA和LISTENER.ORA
    • C、TNSNAMES.ORA和INIT.ORA
    • D、SQLNET.ORA和LISTENER.ORA
    • E、INIT.ORA和LISTENER.ORA

    正确答案:B

  • 第7题:

    A client/server application has been configured to use local naming. The client and server run on separate machines. When the client tries to connect, it receives a TNS error. By carefully examining the environment, a tnsnames.ora is found only on the Oracle server machine, among other things. After copying this tnsnames.ora onto the client machine, the client is able to connect to the server.  Which statement is true?()

    • A、tnsnames.ora must be on the client machine for local naming. 
    • B、tnsnames.ora must be removed from the server for the connection to work. 
    • C、tnsnames.ora must be on both the client and server machines for local naming. 
    • D、tnsnames.ora is not required for local naming; the problem was not fixed by copying the file to the client.

    正确答案:A

  • 第8题:

    单选题
    Your tnsnames.ora file has the following entry for the service alias ORCL:  ORCL =  (DESCRIPTION =  (ADDRESS = (PROTOCOL = TCP) (HOST = 10.156.24.216) (PORT = 1521))   (CONNECT_DATA =  (SERVER = DEDICATED) (SERVICE_NAME = orcl.oracle.com)   )   )   The TNSPING command executes successfully when tested with ORCL but you are not able to connect to the database instance with the following command:  SQL> CONNECT scott/tiger@orcl  What could be the reason for this?()
    A

    The listener is not running at the server.

    B

    The TNS_ADMIN environmental variable is set to a wrong value.

    C

    The orcl.oracle.com database service is not registered with the listener.

    D

    The DEFAULT_DOMAIN parameter is set to a wrong value in the SQLNET.ORA file.


    正确答案: A
    解析: 暂无解析

  • 第9题:

    多选题
    When performing a backup using Recovery Manager (RMAN), which four types of files can be backed up with the RMAN BACKUP command?()
    A

    data file

    B

    password file

    C

    archivelog file

    D

    temporary file

    E

    online redo log file

    F

    the current control file

    G

    the tnsnames.ora file

    H

    current server parameter file


    正确答案: C,E
    解析: 暂无解析

  • 第10题:

    多选题
    检测该患者的最可能增多的细胞因子包括(  )。
    A

    IL-5

    B

    IFN-γ

    C

    TL-4

    D

    IFN-β

    E

    IL-8

    F

    IL-11


    正确答案: E,F
    解析: 暂无解析

  • 第11题:

    单选题
    Which naming method uses the tnsnames.ora file to store the connect descriptor used by the client  whileconnecting to the database instance from a remote machine()
    A

    Host naming method

    B

    Local naming method

    C

    External naming method

    D

    Directory naming method


    正确答案: C
    解析: 暂无解析

  • 第12题:

    单选题
    Which naming method uses the tnsnames.ora file to store the connect descriptor used by the client while connecting to the database instance from a remote machine?()
    A

    host naming method

    B

    local naming method

    C

    external naming method

    D

    directory naming method


    正确答案: D
    解析: 暂无解析

  • 第13题:

    Tnsnames.ora,LISTENER.ORA两个文件作用?


    正确答案:
     

  • 第14题:

    数据库客户端配置文件名是()

    • A、tnsnames.txt
    • B、tnsname.doc
    • C、tnsname.ora
    • D、tnsnames.ora

    正确答案:D

  • 第15题:

    在ORACLE服务器端启动监听器时,需要使用到下列()网络配置文件。

    • A、listener.ora
    • B、lsnrctl.ora
    • C、sqlnet.ora
    • D、tnsnames.ora

    正确答案:A

  • 第16题:

    在裂缝识别测井(FIL)图上,()裂缝在四条重叠曲线上均有较短的异常,()裂缝在两条重叠曲线上有较长井段的异常。

    • A、垂直;水平
    • B、水平;垂直
    • C、溶蚀;水平
    • D、水平;溶蚀

    正确答案:B

  • 第17题:

    在Windows操作环境下,下列文件命名错误的是()。

    • A、Fil-E.Doc
    • B、Fil/E.Doc
    • C、FilE.Doc
    • D、Fi-l-E.Doc

    正确答案:B

  • 第18题:

    When performing a backup using Recovery Manager (RMAN), which four types of files can be backed up with the RMAN BACKUPcommand? ()

    • A、 data file
    • B、 password file
    • C、 archivelog file
    • D、 temporary file
    • E、 online redo log file
    • F、 the current control file
    • G、 the tnsnames.ora file
    • H、 current server parameter file

    正确答案:A,C,F,H

  • 第19题:

    Which of the following file should be configured for dynamic service registration?()

    • A、LISTENER.ORA
    • B、SQLNET.ORA
    • C、INIT.ORA
    • D、TNSNAMES.ORA

    正确答案:C

  • 第20题:

    单选题
    Putting your mobile phone on a restaurant table may make your friends think _____.
    A

    you prefer to talk to your friends at the table

    B

    you value your calls more than your friends

    C

    you are enjoying the company of your friends

    D

    you are polite and considerate of your friends


    正确答案: B
    解析:
    短文第四段说“吃饭的时候不要把手机放在餐桌上,因为这样做传达的信息是你的电话会比你周围的人更重要”。B项是对这句话的同义转述。A项缺少依据。C项无中生有。在文中并没有这么提到。D项语意矛盾。这样的表现不是对朋友的友好相反是一种不友好不礼貌。

  • 第21题:

    多选题
    When performing a backup using Recovery Manager (RMAN), which four types of files can be backed up with the RMAN BACKUPcommand? ()
    A

    data file

    B

    password file

    C

    archivelog file

    D

    temporary file

    E

    online redo log file

    F

    the current control file

    G

    the tnsnames.ora file

    H

    current server parameter file


    正确答案: C,H
    解析: 暂无解析

  • 第22题:

    单选题
    Your database is not configured for session failover. Your tnsnames.ora file contains the following details:  test.us.oracle.com= (DESCRIPTION=  (ADDRESS_LIST= (LOAD_BALANCE=off)   (FAILOVER=ON)   (ADDRESS= (PROTOCOL=tcp)(HOST=test1-server)(PORT=1521))   (ADDRESS= (PROTOCOL=tcp)(HOST=test2-server)(PORT=1521)))   (CONNECT_DATA= (SERVICE_NAME=test.us.oracle.com)))   Which feature is enabled in this case?()
    A

    Load balancing

    B

    Instance failover

    C

    Database failover

    D

    Connect-time failover

    E

    Transparent Application Failover (TAF)


    正确答案: A
    解析: 暂无解析

  • 第23题:

    填空题
    现场巡检员判断过滤器FIL-2B堵与否的依据是()。

    正确答案: 前后压力差
    解析: 暂无解析