| 97 | | Generar/instalar vistas, constrains de la base de datos de contabilidad. |
| | 123 | Proceso para la exportación e importación de la base de datos - Oracle: |
| | 124 | |
| | 125 | 1. Conectarse al usuario oracle: |
| | 126 | |
| | 127 | {{{ |
| | 128 | $ssh oracle@192.168.2.9 |
| | 129 | password= Sistemas |
| | 130 | }}} |
| | 131 | |
| | 132 | 2. Exportar el HOME de Oracle |
| | 133 | |
| | 134 | {{{ |
| | 135 | $export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1/ |
| | 136 | }}} |
| | 137 | |
| | 138 | 3. Ir a ORACLE_HOME/bin |
| | 139 | |
| | 140 | {{{ |
| | 141 | $ cd $ORACLE_HOME/bin |
| | 142 | }}} |
| | 143 | |
| | 144 | 4. Exportar ORACLE_SID |
| | 145 | |
| | 146 | {{{ |
| | 147 | $ export ORACLE_SID=comisiones |
| | 148 | }}} |
| | 149 | |
| | 150 | 5. Exportar variable de Entorno |
| | 151 | |
| | 152 | {{{ |
| | 153 | $export NLS_LANG=SPANISH_SPAIN.WE8ISO8859P1 |
| | 154 | }}} |
| | 155 | |
| | 156 | 6. Ejecutar el comando de exportacion |
| | 157 | |
| | 158 | {{{ |
| | 159 | $./exp |
| | 160 | Username: |
| | 161 | Password: |
| | 162 | |
| | 163 | Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production |
| | 164 | |
| | 165 | With the Partitioning, OLAP and Data Mining options |
| | 166 | Enter array fetch buffer size: 4096 > 4096 |
| | 167 | |
| | 168 | Export file: expdat.dmp > |
| | 169 | |
| | 170 | (1)E(ntire database), (2)U(sers), or (3)T(ables): (2)U > 2 |
| | 171 | Export grants (yes/no): yes > yes |
| | 172 | Export table data (yes/no): yes > yes |
| | 173 | Compress extents (yes/no): yes > yes |
| | 174 | Export done in US7ASCII character set and AL16UTF16 NCHAR character set |
| | 175 | |
| | 176 | server uses WE8ISO8859P1 character set (possible charset conversion) |
| | 177 | |
| | 178 | About to export specified users ... |
| | 179 | |
| | 180 | User to be exported: (RETURN to quit) > Enter |
| | 181 | }}} |
| | 182 | |
| | 183 | 7. La salida debe mostrar lo siguiente, teniendo en cuenta la base de datos que se desea exportar |
| | 184 | |
| | 185 | {{{ |
| | 186 | . exporting pre-schema procedural objects and actions |
| | 187 | |
| | 188 | . exporting foreign function library names for user WEBSAFI |
| | 189 | |
| | 190 | . exporting PUBLIC type synonyms |
| | 191 | |
| | 192 | . exporting private type synonyms |
| | 193 | |
| | 194 | . exporting object type definitions for user WEBSAFI |
| | 195 | |
| | 196 | About to export WEBSAFI's objects ... |
| | 197 | |
| | 198 | . exporting database links |
| | 199 | |
| | 200 | . exporting sequence numbers |
| | 201 | |
| | 202 | . exporting cluster definitions |
| | 203 | |
| | 204 | . about to export WEBSAFI's tables via Conventional Path ... |
| | 205 | |
| | 206 | . . exporting table AREAS 16 rows exported |
| | 207 | |
| | 208 | EXP-00091: Exporting questionable statistics. |
| | 209 | |
| | 210 | EXP-00091: Exporting questionable statistics. |
| | 211 | |
| | 212 | . . exporting table COMISIONADOS_CONTRATO 1581 rows exported |
| | 213 | |
| | 214 | EXP-00091: Exporting questionable statistics. |
| | 215 | |
| | 216 | EXP-00091: Exporting questionable statistics. |
| | 217 | |
| | 218 | . . exporting table COMISIONADOS_OBJS 6653 rows exported |
| | 219 | |
| | 220 | EXP-00091: Exporting questionable statistics. |
| | 221 | |
| | 222 | EXP-00091: Exporting questionable statistics. |
| | 223 | |
| | 224 | . . exporting table COMISIONADOS_PLANTA 1508 rows exported |
| | 225 | |
| | 226 | EXP-00091: Exporting questionable statistics. |
| | 227 | |
| | 228 | EXP-00091: Exporting questionable statistics. |
| | 229 | |
| | 230 | . . exporting table COMISIONES 1469 rows exported |
| | 231 | |
| | 232 | EXP-00091: Exporting questionable statistics. |
| | 233 | |
| | 234 | EXP-00091: Exporting questionable statistics. |
| | 235 | |
| | 236 | . . exporting table CREDENCIALES 12 rows exported |
| | 237 | |
| | 238 | EXP-00091: Exporting questionable statistics. |
| | 239 | |
| | 240 | EXP-00091: Exporting questionable statistics. |
| | 241 | |
| | 242 | . . exporting table DEPARTAMENTOS 33 rows exported |
| | 243 | |
| | 244 | EXP-00091: Exporting questionable statistics. |
| | 245 | |
| | 246 | EXP-00091: Exporting questionable statistics. |
| | 247 | |
| | 248 | . . exporting table DESTINOS 4378 rows exported |
| | 249 | |
| | 250 | EXP-00091: Exporting questionable statistics. |
| | 251 | |
| | 252 | EXP-00091: Exporting questionable statistics. |
| | 253 | |
| | 254 | . . exporting table DESTINOS_COMISIONADOS 9578 rows exported |
| | 255 | |
| | 256 | EXP-00091: Exporting questionable statistics. |
| | 257 | |
| | 258 | EXP-00091: Exporting questionable statistics. |
| | 259 | |
| | 260 | . . exporting table LOG 7893 rows exported |
| | 261 | |
| | 262 | EXP-00091: Exporting questionable statistics. |
| | 263 | |
| | 264 | EXP-00091: Exporting questionable statistics. |
| | 265 | |
| | 266 | . . exporting table MENUS 4 rows exported |
| | 267 | |
| | 268 | EXP-00091: Exporting questionable statistics. |
| | 269 | |
| | 270 | EXP-00091: Exporting questionable statistics. |
| | 271 | |
| | 272 | . . exporting table MUNICIPIOS 1120 rows exported |
| | 273 | |
| | 274 | EXP-00091: Exporting questionable statistics. |
| | 275 | |
| | 276 | EXP-00091: Exporting questionable statistics. |
| | 277 | |
| | 278 | . . exporting table NVIATICO 14 rows exported |
| | 279 | |
| | 280 | EXP-00091: Exporting questionable statistics. |
| | 281 | |
| | 282 | EXP-00091: Exporting questionable statistics. |
| | 283 | |
| | 284 | . . exporting table OBJETOS_GASTO 9 rows exported |
| | 285 | |
| | 286 | EXP-00091: Exporting questionable statistics. |
| | 287 | |
| | 288 | EXP-00091: Exporting questionable statistics. |
| | 289 | |
| | 290 | . . exporting table PERFILES 4 rows exported |
| | 291 | |
| | 292 | EXP-00091: Exporting questionable statistics. |
| | 293 | |
| | 294 | EXP-00091: Exporting questionable statistics. |
| | 295 | |
| | 296 | . . exporting table PERFILES_CREDENCIALES 48 rows exported |
| | 297 | |
| | 298 | EXP-00091: Exporting questionable statistics. |
| | 299 | |
| | 300 | EXP-00091: Exporting questionable statistics. |
| | 301 | |
| | 302 | . . exporting table PROYECTOS 71 rows exported |
| | 303 | |
| | 304 | EXP-00091: Exporting questionable statistics. |
| | 305 | |
| | 306 | EXP-00091: Exporting questionable statistics. |
| | 307 | |
| | 308 | . . exporting table REGIONALES 18 rows exported |
| | 309 | |
| | 310 | EXP-00091: Exporting questionable statistics. |
| | 311 | |
| | 312 | EXP-00091: Exporting questionable statistics. |
| | 313 | |
| | 314 | . . exporting table TARIFAS_DESTINO 2529 rows exported |
| | 315 | |
| | 316 | EXP-00091: Exporting questionable statistics. |
| | 317 | |
| | 318 | EXP-00091: Exporting questionable statistics. |
| | 319 | |
| | 320 | . . exporting table TARIFAS_TAXIS 6 rows exported |
| | 321 | |
| | 322 | EXP-00091: Exporting questionable statistics. |
| | 323 | |
| | 324 | EXP-00091: Exporting questionable statistics. |
| | 325 | |
| | 326 | . . exporting table TERCEROS 884 rows exported |
| | 327 | |
| | 328 | EXP-00091: Exporting questionable statistics. |
| | 329 | |
| | 330 | EXP-00091: Exporting questionable statistics. |
| | 331 | |
| | 332 | . . exporting table TIPOS_COMISION 6 rows exported |
| | 333 | |
| | 334 | EXP-00091: Exporting questionable statistics. |
| | 335 | |
| | 336 | EXP-00091: Exporting questionable statistics. |
| | 337 | |
| | 338 | . . exporting table TIPO_IDENTIFICACION 1 rows exported |
| | 339 | |
| | 340 | EXP-00091: Exporting questionable statistics. |
| | 341 | |
| | 342 | EXP-00091: Exporting questionable statistics. |
| | 343 | |
| | 344 | . . exporting table TRANSPORTES 3 rows exported |
| | 345 | |
| | 346 | EXP-00091: Exporting questionable statistics. |
| | 347 | |
| | 348 | EXP-00091: Exporting questionable statistics. |
| | 349 | |
| | 350 | . . exporting table USUARIOS 33 rows exported |
| | 351 | |
| | 352 | EXP-00091: Exporting questionable statistics. |
| | 353 | |
| | 354 | EXP-00091: Exporting questionable statistics. |
| | 355 | |
| | 356 | . exporting synonyms |
| | 357 | |
| | 358 | . exporting views |
| | 359 | |
| | 360 | . exporting stored procedures |
| | 361 | |
| | 362 | . exporting operators |
| | 363 | |
| | 364 | . exporting referential integrity constraints |
| | 365 | |
| | 366 | . exporting triggers |
| | 367 | |
| | 368 | . exporting indextypes |
| | 369 | |
| | 370 | . exporting bitmap, functional and extensible indexes |
| | 371 | |
| | 372 | . exporting posttables actions |
| | 373 | |
| | 374 | . exporting materialized views |
| | 375 | |
| | 376 | . exporting snapshot logs |
| | 377 | |
| | 378 | . exporting job queues |
| | 379 | |
| | 380 | . exporting refresh groups and children |
| | 381 | |
| | 382 | . exporting dimensions |
| | 383 | |
| | 384 | . exporting post-schema procedural objects and actions |
| | 385 | |
| | 386 | . exporting statistics |
| | 387 | |
| | 388 | Export terminated successfully with warnings. |
| | 389 | }}} |
| | 390 | |
| | 391 | 8. Una vez terminado el proceso de exportacion, el archivo se encuentra en la ruta |
| | 392 | |
| | 393 | {{{ |
| | 394 | ORACLE_HOME/bin/expdat.dmp |
| | 395 | }}} |
| | 396 | |
| | 397 | 9. Para realizar la importacion se debe correr el comando import |
| | 398 | |
| | 399 | {{{ |
| | 400 | export ORACLE_SID=sid |
| | 401 | ./imp usuario/password file=expdat.dmp full=y; |
| | 402 | }}} |
| | 403 | |