Archive for the 'Databases' Category Archivio per il 'Database' Categoria

How to Rename or Move Oracle Tablespace Datafile to Another Location Come rinominare o spostare Oracle tablespace archivio dei dati in un'altra posizione

Saturday, August 4th, 2007 Sabato, Agosto 4th, 2007

Oracle database does not provide an easy user interface to rename a datafile of tablespace, nor database administrator can easily move or relocate the datafile to another location or directory that different from original location on creation of database. Database Oracle non fornisce un facile interfaccia utente a rinominare un archivio dei dati di tablespace, né amministratore del database può facilmente spostare o riposizionare l'archivio dei dati in un'altra posizione o directory diversa da posizione originale sulla creazione di database. The rename or move place task has to be performed via Oracle SQLPlus command line interface. La rinominare o spostare luogo compito dovrà essere eseguito tramite Oracle SQLPlus linea di comando. However, if the operation is performed when the tablespace which owns the datefile is online, error will occur. Tuttavia, se l'operazione viene eseguita quando il tablespace che possiede il datefile è on-line, errore si verifica.

Continue reading How to Rename or Move Oracle Tablespace Datafile to Another Location » » » Continua a leggere Come rinominare o spostare Oracle Tablespace archivio dei dati in un'altra posizione »» »


How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Come goccia tablespace e recuperare database Oracle quando accidentalmente eliminare archivio dei dati

Saturday, August 4th, 2007 Sabato, Agosto 4th, 2007

Accident may happens, even though it’s costly one. Maggio incidente accade, anche se è costoso. This is especially the case in Oracle database, which stores the database objects physically in data files on hard disk. Questo vale in particolare per database Oracle, che memorizza la banca dati oggetti fisicamente nel file di dati sul disco rigido. Fast hand administrators may accidentally delete some of the datafiles, or the datafiles may get corrupted or unreadable on hard disk failure. Veloce mano amministratori possono eliminare accidentalmente alcuni dei datafiles, o il datafiles possibile ottenere danneggiato o illeggibile sul disco rigido fallimento. You may get also some missing datafiles after database recovery process. Si possono ottenere anche alcuni scomparsi dopo datafiles banca dati processo di recupero. In any case, missing a or a few datafiles will cause Oracle database to fail to startup, rendering the whole DB inaccessible. In ogni caso, manca uno o pochi datafiles farà database Oracle a non di avvio, rendendo l'intero PB inaccessibili.

Continue reading How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile » » » Continua a leggere Come Drop Tablespace e il ripristino di Oracle Database Quando Accidentally Elimina archivio dei dati »» »

How to Remove and Drop Datafiles from Tablespace in Oracle Database Come rimuovere e da Drop Datafiles Tablespace in Oracle Database

Saturday, August 4th, 2007 Sabato, Agosto 4th, 2007

Oracle RDBMS databases stores data logically in the form of tablespaces and physically in the form of data files. Oracle RDBMS database memorizza dati logicamente in forma di tablespaces e fisicamente in forma di file di dati. The datafiles are added to the tablespaces as database space requirement grows bigger. Il datafiles sono aggiunte le tablespaces come banca dati spazio requisito cresce più grande. However, there are several reasons you may want to remove or delete data files from a tablespace. Tuttavia, vi sono diversi motivi è possibile che si desideri rimuovere o cancellare i dati da un file tablespace. Such as accidentally add a wrongly sized or unwanted datafile to a tablespace, or the data space usage has became smaller and some data files want to be removed, or attempt to recover Oracle database which fails to start due to missing or corrupted datafiles by removing them, Oracle does not provide an easy way or user interface to delete or drop datafiles from a tablespace. Come ad esempio accidentalmente aggiungere un torto dimensioni o indesiderati archivio dei dati relativi a un tablespace, oppure i dati di utilizzo dello spazio è diventato più piccolo e alcuni file di dati vogliono essere rimosso, o tentare di recuperare i database Oracle che non parte a causa di mancanti o danneggiati datafiles di rimuoverli , Oracle non fornisce un modo semplice interfaccia utente o per eliminare o goccia datafiles da un tablespace. Once a datafile is made part of a tablespace, it can no longer be detached or removed from the tablespace, albeit there are several workarounds. Una volta che un archivio dei dati è fatto parte di un tablespace, non può più essere staccati o rimosso dalla tablespace, anche se ci sono diverse soluzioni.

Continue reading How to Remove and Drop Datafiles from Tablespace in Oracle Database » » » Continua a leggere come rimuovere e da Drop Datafiles Tablespace in Oracle Database »» »

How to Backup and Restore (Export and Import) MySQL Databases Tutorial Come fare il backup e ripristino (esportazione e importazione) basi di dati di MySQL Tutorial

Saturday, July 21st, 2007 Sabato, 21 luglio 2007

phpMyAdmin can be used to export or backup MySQL databases easily. phpMyAdmin può essere utilizzato per l'esportazione di backup o di basi di dati di MySQL facilmente. However, if the database size is very big, it probably won’t be a good idea. Tuttavia, se le dimensioni del database è molto grande, probabilmente non sarà una buona idea. phpMyAdmin allows users to save database dump as file or display on screen, which involves exporting SQL statements from the server, and transmitting the data across slower network connection or Internet to user’s computer. phpMyAdmin permette agli utenti di salvare il dump di database come file o la visualizzazione sullo schermo, che coinvolge esportatori dichiarazioni di SQL server, e la trasmissione di dati attraverso la connessione di rete lenta o Internet con il tuo computer. This process slow the exporting process, increase database locking time and thus MySQL unavailability, slow the server and may simply crash the Apache HTTPD server if too many incoming web connections hogging the system’s resources. Questo processo lento processo di esportazione, aumentare la banca dati di bloccaggio tempo e, quindi, MySQL indisponibilità, lento il server e può semplicemente in crash il server httpd Apache, se troppe connessioni in entrata web monopolizzavano il sistema delle risorse.

Continue reading How to Backup and Restore (Export and Import) MySQL Databases Tutorial » » » Continua a leggere Come fare il backup e ripristino (esportazione e importazione) basi di dati di MySQL Tutorial »» »


MySQL Error 1170 (42000): BLOB/TEXT Column Used in Key Specification Without a Key Length MySQL Error 1170 (42000): BLOB / TEXT Colonna Utilizzato in chiave specifica Senza lunghezza della chiave

Monday, July 9th, 2007 Lunedi, 9 luglio 2007

When creating a new table or altering an existing table with primary keys, unique constraints and indexes, or when defining a new index with Alter Table manipulation statement in MySQL database, the following error may occur and prohibit the the command from completing: La creazione di una nuova tabella o modificare una esistente tavolo con chiavi primarie, unica vincoli e indici, o al momento di definire un nuovo indice con ALTER TABLE manipolazione dichiarazione in database MySQL, il seguente messaggio di errore può verificarsi e vietare la il comando da completare:

ERROR 1170 (42000): BLOB/TEXT column ‘field_name’ used in key specification without a key length ERRORE 1170 (42000): BLOB / TEXT colonna 'field_name' utilizzato in chiave senza una specifica lunghezza della chiave

Continue reading MySQL Error 1170 (42000): BLOB/TEXT Column Used in Key Specification Without a Key Length » » » Continua a leggere MySQL Errore 1170 (42000): BLOB / TEXT Colonna Utilizzato in chiave specifica Senza lunghezza della chiave »» »

Remove or Trim First or Last Few Characters in MySQL Database with SQL Rimuovere o Trim prima o l'ultima pochi caratteri in MySQL Database con SQL

Monday, April 23rd, 2007 Lunedi, 23 aprile 2007

Another useful string function in MySQL database is TRIM() which will return a text string after removing the matching leading or trailing characters, also known as prefixes or suffixes. Un'altra funzione utile in string database MySQL è Trim () che restituisce una stringa di testo dopo aver tolto l'abbinamento iniziali o finali caratteri, noto anche come prefissi o suffissi. It’s been described by MySQL reference as function that returns the string str with all remstr prefixes or suffixes removed. E 'stata descritta da MySQL come riferimento la funzione che restituisce la stringa str remstr con tutti i prefissi o suffissi rimossi. If none of the specifiers BOTH, LEADING, or TRAILING is given, BOTH is assumed. Se nessuno dei specifiers entrambi, capofila, o in svantaggio è dato, TANTO è assunto. remstr is optional and, if not specified, spaces are removed. remstr è facoltativo e, se non specificato, gli spazi vengono rimossi.

Continue reading Remove or Trim First or Last Few Characters in MySQL Database with SQL » » » Continua a leggere Rimuovi o Trim prima o l'ultima pochi caratteri in MySQL Database con SQL »» »

How to Find and Replace Text in MySQL Database using SQL Come trovare e sostituire del testo nel Database MySQL usando SQL

Monday, April 23rd, 2007 Lunedi, 23 aprile 2007

MySQL database has a handy and simple string function REPLACE() that allows table data with the matching string (from_string) to be replaced by new string (to_string). Database MySQL è un pratico e semplice stringa funzione REPLACE () che consente di dati delle tabelle di corrispondenza con la stringa (from_string) che devono essere sostituite da nuove stringa (to_string). This is useful if there is need to search and replace a text string which affects many records or rows, such as change of company name, postcode, URL or spelling mistake. Questo è utile se vi è necessità di cercare e sostituire una stringa di testo che tocca molti registri o righe, come ad esempio il cambiamento di nome della società, codice postale, URL o errore di ortografia.

Continue reading How to Find and Replace Text in MySQL Database using SQL » » » Continua a leggere Come trovare e sostituire del testo nel Database MySQL usando SQL »» »

How to Escape Characters in Oracle PL/SQL Queries Come sfuggire caratteri in Oracle PL / SQL

Saturday, March 24th, 2007 Sabato, 24 marzo 2007

Oracle databases reserve some special characters with specific meaning and purpose within Oracle environment. Database Oracle riserva alcuni caratteri speciali con specifico significato e lo scopo all'interno di Oracle. These reserved characters include _ (underscore) wild card character which used to match exactly one character, % (percentage) which used to match zero or more occurrences of any characters and ‘ (apostrophe or quotation mark) which used to mark the value supplied. Questi comprendono i caratteri riservati _ (underscore) carattere jolly che utilizzate per abbinare esattamente un carattere% (percentuale) che utilizzate per abbinare zero o più occorrenze di qualsiasi carattere e '(apostrofo o virgolette), usato per marcare il valore fornito. These special characters will not be interpreted literally when building SQL query in Oracle, and may caused error in results returned especially when performing string search with LIKE keyword. Questi caratteri speciali non verrà interpretato letteralmente quando edificio query SQL in Oracle, e può causato un errore in risultati restituiti in particolare quando si effettua una stringa di ricerca con parole chiave simili. To use these characters so that Oracle can interpret them literally as a part of string value instead of preset mean, escape character has to be assigned. Per utilizzare questi caratteri in modo che Oracle può interpretarle come letteralmente una parte del valore della stringa di preselezione, invece di dire, carattere di escape deve essere assegnato.

Continue reading How to Escape Characters in Oracle PL/SQL Queries » » » Continua a leggere Come caratteri escape in Oracle PL / SQL »» »