Alejandro Arzola
Quiz by , created more than 1 year ago

Comandos de SQLPLUS

75
0
0
Alejandro Arzola
Created by Alejandro Arzola over 7 years ago
Close

Comandos SQLPLUS

Question 1 of 35

1

Sintaxis del comando de SQLPLUS que te permite conectar a la base de datos de Oracle mediante un nombre de usuario.

Select one of the following:

  • CONN[ECT][username [/password]]

  • DISC[ONNECT]

Explanation

Question 2 of 35

1

Sintaxis del comando de SQLPLUS que te permite cambiar la contraseña de una cuenta de usuario.

Select one of the following:

  • PASSW[ORD] [username]

  • UPDATE PASS [username]

Explanation

Question 3 of 35

1

Sintaxis del comando de SQLPLUS que te permite desconectar el usuario actual de su sesión en Oracle.

Select one of the following:

  • DISC[ONNECT]

  • SPOOL OFF

Explanation

Question 4 of 35

1

Sintaxis del comando de SQLPLUS que te permite confirmar o deshacer todos los cambios pendientes y finaliza SLQPLUS.

Select one of the following:

  • EXIT [SUCCESS | FAILURE | WARNING | n | variable] [COMMIT | ROLLBACK]

  • COMMIT WORK AND EXIT

Explanation

Question 5 of 35

1

Sintaxis del comando de SQLPLUS que te permite mostrar una o mas líneas del buffer.

Select one of the following:

  • L[IST] [n | n m | n * | n LAST | * | * n | * LAST | LAST]

  • S[HOW] [n m | n * | n LAST | * | * n | * LAST | LAST]

Explanation

Question 6 of 35

1

Sintaxis del comando de SQLPLUS que te permite añadir una o más líneas de texto al final de la línea actual del buffer.

Select one of the following:

  • I[NPUT] text

  • A[PPEND] text

Explanation

Question 7 of 35

1

Sintaxis del comando de SQLPLUS que te permite añadir texto al final de la línea actual del buffer.

Select one of the following:

  • A[PPEND] text

  • I[NPUT] text

Explanation

Question 8 of 35

1

Sintaxis del comando de SQLPLUS que te permite cambiar la primera aparición del texto especificado en la línea actual del buffer.

Select one of the following:

  • C[HANGE] /old_text [/new_text]

  • R[EPLACE] /old_text [/new_text]

Explanation

Question 9 of 35

1

Sintaxis del comando de SQLPLUS que te permite eliminar una o más líneas del buffer.

Select one of the following:

  • DEL [n | n m | n * | n LAST | * | * n | * LAST | LAST]

  • DEL[ETE] [n | n m | n * | n LAST | * | * n | * LAST | LAST]

Explanation

Question 10 of 35

1

Sintaxis del comando de SQLPLUS que te permite guardar el contenido del buffer en un script del sistema operativo

Select one of the following:

  • SAV[E] file_name[.ext] [CRE[ATE] | REP[LACE] | APP[END]]

  • SPOOL file_name[.ext] [CRE[ATE] | REP[LACE] | APP[END]]

Explanation

Question 11 of 35

1

Sintaxis del comando de SQLPLUS que te permite cargar un fichero del sistema en el buffer de SQLPLUS

Select one of the following:

  • GET file_name[.ext] [LIST | NOLIST]

  • LOAD file_name[.ext] [LIST | NOLIST]

Explanation

Question 12 of 35

1

Sintaxis del comando de SQLPLUS que te permite mostrar y ejecutar el contenido actual del buffer

Select one of the following:

  • R[UN]

  • /

Explanation

Question 13 of 35

1

Sintaxis del comando de SQLPLUS que te permite ejecutar el contenido del buffer sin mostrarlo

Select one of the following:

  • /

  • R[UN]

Explanation

Question 14 of 35

1

Sintaxis del comando de SQLPLUS que te permite invocar un editor de texto del sistema operativo con el contenido del archivo especificado o con el contenido del buffer

Select one of the following:

  • ED[IT] [file_name[.ext]]

  • IN[VOQUE] [file_name[.ext]]

Explanation

Question 15 of 35

1

Sintaxis del comando de SQLPLUS que te permite comenzar un comentario en un script

Select one of the following:

  • REM[ARK] text

  • # text

Explanation

Question 16 of 35

1

Sintaxis del comando de SQLPLUS que te permite indicar el comienzo de un comentario en una línea.

Select one of the following:

  • -- text

  • // text

Explanation

Question 17 of 35

1

Sintaxis del comando de SQLPLUS que te permite delimitar un comentario.

Select one of the following:

  • /* text */

  • /# text #/

Explanation

Question 18 of 35

1

Sintaxis del comando de SQLPLUS que te permite ejectuar el contenido del fichero especificado

Select one of the following:

  • STA[RT] file_name[.ext

  • RUNN[ING] file_name[.ext]

Explanation

Question 19 of 35

1

Sintaxis del comando de SQLPLUS que te permite copiar el resultado de una consulta a una tabla en la misma base de datos o en otra diferente.

Select one of the following:

  • COPY {FROM base | TO base | FROM base TO base} {APPEND | CREATE | REPLACE | INSERT}

  • CP {FROM base | TO base | FROM base TO base} {APPEND | CREATE | REPLACE | INSERT}

Explanation

Question 20 of 35

1

Sintaxis del comando de SQLPLUS que te permite enumerar las definiciones de las columnas de la tabla, vista o sinónimo especificado

Select one of the following:

  • DESC[RIBE] table

  • ENUM table

Explanation

Question 21 of 35

1

Sintaxis del comando de SQLPLUS que te permite almacenar los resultados de las consultas en un archivo del sistema operativo

Select one of the following:

  • SPO[OL] file_name[.ext] [CRE[ATE] | REP[LACE] | APP[END]]| OFF | OUT]

  • SAV[E] file_name[.ext] [CRE[ATE] | REP[LACE] | APP[END]]| OFF | OUT]

Explanation

Question 22 of 35

1

Sintaxis del comando de SQLPLUS que te permite mostrar el valor de una variable del sistema

Select one of the following:

  • SHO[OW] { ALL | parameter}

  • VI[EW] option

Explanation

Question 23 of 35

1

Sintaxis del comando de SQLPLUS que te permite fijar el valor de una variable de sistema

Select one of the following:

  • SET system_variable value

  • DEF system_variable value

Explanation

Question 24 of 35

1

Sintaxis del comando de SQLPLUS que te permite acceder al sistema de ayuda

Select one of the following:

  • HELP [topic]

  • MAN [topic]

Explanation

Question 25 of 35

1

Sintaxis del comando de SQLPLUS que te permite ejecutar un comando del sistema operativo sin salir de SQLPLUS.

Select one of the following:

  • HO[ST] [command] | ![command]

  • LO[CAL][command] | ![command]

Explanation

Question 26 of 35

1

Sintaxis del comando de SQLPLUS que te permite especificar una variable predefinida o de usuario y la asigna un valor CHAR.

Select one of the following:

  • DEF[INE][variable=text]

  • VAR[variable=text]

Explanation

Question 27 of 35

1

Sintaxis del comando de SQLPLUS que te permite eliminar una o más variables de usuario que hayan sido definidas

Select one of the following:

  • UNDEF[INE] variable

  • DELVAR variable

Explanation

Question 28 of 35

1

Sintaxis del comando de SQLPLUS que te permite leer una línea de entrada y la almacena en la variable de usuario dada.

Select one of the following:

  • ACC[EPT] variable [data_type][FOR[MAT] format][DEF[AULT] default][PROMT text] [HIDE]

  • RE[AD] variable [data_type][FOR[MAT] format][DEF[AULT] default][PROMT text] [HIDE]

Explanation

Question 29 of 35

1

Sintaxis del comando de SQLPLUS que te permite declarar una variable BIND que puede ser referenciada en PL/SQL

Select one of the following:

  • VAR[IABLE][variable[NUMBRER | CHAR(n)]]

  • DEF[INE][variable[NUMBRER | CHAR(n)]]

Explanation

Question 30 of 35

1

Sintaxis del comando de SQLPLUS que te permite mostrar el valor actual de una variable BIND.

Select one of the following:

  • PRI[NT] variable

  • SHO[W] variable

Explanation

Question 31 of 35

1

Sintaxis del comando de SQLPLUS que te permite mostrar una línea vacía seguida del texto especificado y espera que el usuario pulse RETURN, o muestra dos líneas vacías y espera la respuesta del usuario.

Select one of the following:

  • PAU[SE] [text]

  • ST[OP][text]

Explanation

Question 32 of 35

1

Sintaxis del comando de SQLPLUS que te permite mostrar por pantalla el texto especificado o una línea en blanco

Select one of the following:

  • PRO[MPT][text]

  • EC[HO][text]

Explanation

Question 33 of 35

1

Sintaxis del comando de SQLPLUS que te permite insertar y formatear un título especificado en la parte superior de cada página.

Select one of the following:

  • TTI[TLE][printspec[text|variable]...][OFF|ON]

  • TI[TLE][printspec[text|variable]...][OFF|ON]

Explanation

Question 34 of 35

1

Sintaxis del comando de SQLPLUS que te permite insertar y formatear un título especificado en la parte inferior de cada página

Select one of the following:

  • BTI[TLE][printspec[text|variable]...][OFF|ON]

  • TI[TLE][printspec[text|variable]...][OFF|ON]

Explanation

Question 35 of 35

1

Sintaxis del comando de SQLPLUS que te permite especificar las características de visualización para una columna determinada o lista de columnas

Select one of the following:

  • COL[UMN][{column | expr}[option]]

  • GOLLUM[{column | expr}[option]]

Explanation