Escolar Documentos
Profissional Documentos
Cultura Documentos
1. CONCEPTOS BSICOS
- BDR: coleccion de tablas y sus relaciones
- Trminos ms usados: PK, FK, Campo, Columna, Null
- SQL:
* Data Retrieval
* DML
* DDL
* transaccion control
* DCL
- SGA Y PHA.
- TAREA DE UN DBA:
* Inst. y Act. sw de oracle
* Crear bd
* Levantar y bajar instancias
* Gestioonar estructuras de alm. de la bd
* Gestionar usuarios y seguridad
* gestionar esquemas
* Hace backup y recuperaciones si fuera necesario.
* Hacer monitorizacion proactica de la bd y tomar acciones proactivas y
correctivas.
* Monitorizar y mejorar el rendimiento.
* Diagnosticar y reportar errores al soporte Oracle.
- OUI, DBCA, DBUA, ONM, ONCA, OEM, SQL Plus, Recovery Manager(RMAN),
Oracle Scure Backup, Data Pump, SQL Loader
- INSTALACION Y CREACION DE BD:
*OUI: ENTORNO LINUX-UNIX
(ORACLE_BASE,ORACLE_HOME,ORACLE_SID,LD_LIBRARY_PATH)
*INST TPICA: SE CREA AUTOMAT. AL FINAL. LA INST. DE SW. - INST. AVANZADA:
SOLO SW Y DESPUES UTILIZAR NETCA PARA CREACION DEL LISTENER Y EL DBCA
PARA CREAR LA BD MAS PERSONALIZADA
* ACCEDER EM... https://host name:1158/em
iniciar servicios
CONNECT AS SYSDBA
ID: system
PW: soporte@123
SELECT * FROM CAT;
select * from countries;
desc countries; (ver tipo de datos)
select employee_id, first_name | |last_name from employees;
select count(*) from employees;
connect hr/hr;
EMPLOYEE_ID FIRST_NAME||LAST_NAME
----------- --------------------------------------------100 StevenKing
101 NeenaKochhar
102 LexDe Haan
103 AlexanderHunold
104 BruceErnst
105 DavidAustin
106 ValliPataballa
107 DianaLorentz
108 NancyGreenberg
109 DanielFaviet
110 JohnChen
EMPLOYEE_ID FIRST_NAME||LAST_NAME
----------- --------------------------------------------111 IsmaelSciarra
112 Jose ManuelUrman
113 LuisPopp
114 DenRaphaely
115 AlexanderKhoo
116 ShelliBaida
117 SigalTobias
118 GuyHimuro
119 KarenColmenares
120 MatthewWeiss
121 AdamFripp
EMPLOYEE_ID FIRST_NAME||LAST_NAME
----------- --------------------------------------------122 PayamKaufling
123 ShantaVollman
124 KevinMourgos
125 JuliaNayer
126 IreneMikkilineni
127 JamesLandry
128 StevenMarkle
129 LauraBissot
130 MozheAtkinson
131 JamesMarlow
132 TJOlson
EMPLOYEE_ID FIRST_NAME||LAST_NAME
----------- --------------------------------------------133 JasonMallin
134 MichaelRogers
135 KiGee
136 HazelPhiltanker
137 RenskeLadwig
138 StephenStiles
139 JohnSeo
140 JoshuaPatel
141 TrennaRajs
142 CurtisDavies
143 RandallMatos
EMPLOYEE_ID FIRST_NAME||LAST_NAME
----------- --------------------------------------------144 PeterVargas
145 JohnRussell
146 KarenPartners
147 AlbertoErrazuriz
148 GeraldCambrault
149 EleniZlotkey
150 PeterTucker
151 DavidBernstein
152 PeterHall
153 ChristopherOlsen
154 NanetteCambrault
EMPLOYEE_ID FIRST_NAME||LAST_NAME
----------- --------------------------------------------155 OliverTuvault
156 JanetteKing
157 PatrickSully
158 AllanMcEwen
159 LindseySmith
160 LouiseDoran
161 SarathSewall
162 ClaraVishney
163 DanielleGreene
164 MatteaMarvins
165 DavidLee
EMPLOYEE_ID FIRST_NAME||LAST_NAME
----------- --------------------------------------------166 SundarAnde
167 AmitBanda
168 LisaOzer
169 HarrisonBloom
170 TaylerFox
171 WilliamSmith
172 ElizabethBates
173 SunditaKumar
174 EllenAbel
175 AlyssaHutton
176 JonathonTaylor
EMPLOYEE_ID FIRST_NAME||LAST_NAME
----------- --------------------------------------------177 JackLivingston
178 KimberelyGrant
179 CharlesJohnson
180 WinstonTaylor
181 JeanFleaur
182 MarthaSullivan
183 GirardGeoni
184 NanditaSarchand
185 AlexisBull
186 JuliaDellinger
187 AnthonyCabrio
EMPLOYEE_ID FIRST_NAME||LAST_NAME
----------- --------------------------------------------188 KellyChung
189 JenniferDilly
190 TimothyGates
191 RandallPerkins
192 SarahBell
193 BritneyEverett
194 SamuelMcCain
195 VanceJones
196 AlanaWalsh
197 KevinFeeney
198 DonaldOConnell
EMPLOYEE_ID FIRST_NAME||LAST_NAME
----------- --------------------------------------------199 DouglasGrant
200 JenniferWhalen
201 MichaelHartstein
202 PatFay
203 SusanMavris
204 HermannBaer
205 ShelleyHiggins
206 WilliamGietz
COUNT(*)
---------107
User created.
Grant succeeded.
no rows selected
10 ND INT);
Table created.
Table created.
Table created.
Table created.
Table created.
Table created.
SQL> COMMIT;
Commit complete.
Table altered.
Table altered.
Table altered.
Table altered.
Table altered.
Table altered.
Table altered.
Null?
Type
NSSE
NOMBRE_DEPENDIENTE
SEXO
CHAR(1)
FECHA_NCTO
DATE
PARENTESCO
VARCHAR2(8)
Null?
Type
NOMBRE
INC
APELLIDO
NSS
FECHA_NCTO
DIRECCION
SALARIO
NSS_SUPERV
ND
CHAR(9)
NUMBER(38)
Table altered.
Table dropped.
SQL>