Archive for the 'Databases' Categoryアーカイブは、 'データベース'カテゴリーの

How to Rename or Move Oracle Tablespace Datafile to Another Locationどのように名前を変更したり、別の場所にOracleの表領域データファイルの移動

Saturday, August 4th, 2007 2007年8月4日(土)

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. Oracleデータベースの表領域のデータファイルの名前を変更したり、データベース管理者は簡単に移動するか、または別の場所またはディレクトリは、データベースの作成時に元の場所から別のデータファイルへの移転は簡単なユーザーインターフェイスを提供していません。 The rename or move place task has to be performed via Oracle SQLPlus command line interface.タスクの名前を変更したり場所を移動OracleのSQLPlusコマンドラインインターフェイスを介して実行されていない。 However, if the operation is performed when the tablespace which owns the datefile is online, error will occur.ただし、操作が実行されるときに表領域を所有しているオンラインdatefileされると、エラーが発生します。

Continue reading How to Rename or Move Oracle Tablespace Datafile to Another Location » » »続きを読むどのように名前を変更したり、別の場所» » »にOracleのテーブルスペースのデータファイルを移動


How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafileドロップ表領域とOracleデータベースを回復する方法が誤って削除データファイル

Saturday, August 4th, 2007 2007年8月4日(土)

Accident may happens, even though it’s costly one.事故が、発生するも、それはコストのかかるものの1つ。 This is especially the case in Oracle database, which stores the database objects physically in data files on hard disk.これは特に物理的にデータをファイルには、ハードディスク上のデータベースオブジェクトを格納Oracleデータベースでは、ケースです。 Fast hand administrators may accidentally delete some of the datafiles, or the datafiles may get corrupted or unreadable on hard disk failure.高速の手になることがあります管理者が誤って一部のデータファイル、またはデータファイルを削除することがありますが破損または失敗した場合にハードディスクを読み取れない。 You may get also some missing datafiles after database recovery process.また、データベースの回復プロセスをいくつかの行方不明後にデータファイルを取得することがあります。 In any case, missing a or a few datafiles will cause Oracle database to fail to startup, rendering the whole DB inaccessible.いずれにせよ、行方不明またはいくつかのデータファイルの起動に失敗すると、全体のレンダリングDBをOracleデータベースにアクセスできなくなります。

Continue reading How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile » » »続きを読むどのようにドロップ表領域とOracleデータベースの回復時に誤って削除データファイル» » »

How to Remove and Drop Datafiles from Tablespace in Oracle Databaseどのようにデータファイルを削除してドロップするOracleのデータベーステーブルから

Saturday, August 4th, 2007 2007年8月4日(土)

Oracle RDBMS databases stores data logically in the form of tablespaces and physically in the form of data files.データファイルの形で表領域の形を論理的にOracleのRDBMSのデータベースを格納データと物理的に。 The datafiles are added to the tablespaces as database space requirement grows bigger.データベースのデータファイル容量の要件として、テーブルスペースへの大きな成長が追加されました。 However, there are several reasons you may want to remove or delete data files from a 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.誤って誤ったり、表領域、データ領域の使用量が小さくなり、不要なデータファイルとしている一部のデータファイルを削除するかの試みが破損したり削除することにより、データファイルが見つからないために、起動に失敗するOracleデータベースを回復したいサイズの追加などは、 Oracleのデータファイルを削除するか、テーブルスペースからドロップする簡単な方法やユーザーインターフェイスを提供していません。 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.一度、データファイルは、表領域の一部を構成するには、もはや分離することができますか、表領域から削除、いえ、いくつかの回避策があります。

Continue reading How to Remove and Drop Datafiles from Tablespace in Oracle Database » » » Oracleデータベース» »のテーブルからデータファイルを削除してドロップする方法続きを読む»

How to Backup and Restore (Export and Import) MySQL Databases Tutorialバックアップと復元する方法(エクスポートおよびインポート)はMySQLデータベースのチュートリアル

Saturday, July 21st, 2007 2007年7月21日(土)

phpMyAdmin can be used to export or backup MySQL databases easily. phpMyAdminは、 MySQLデータベースのバックアップを簡単にエクスポートするために使用することができます。 However, if the database size is very big, it probably won’t be a good 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は、ユーザーデータベースを保存することができますとしてファイルや画面上に表示、これは、サーバーからSQLステートメントをエクスポートすると低速なネットワーク接続またはユーザーのコンピュータにインターネット経由でデータを送信するダンプ。 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.このプロセスでは、 MySQLの使い勝手の悪さ、時間を増やすデータベースロックは、輸出プロセスを遅らせるのは、サーバーが遅くなりますので、単純には、 Apacheのhttpdサーバーの場合、あまりにも多くの着信方向のWeb接続は、システムのリソースをホッギングクラッシュすることがあります。

Continue reading How to Backup and Restore (Export and Import) MySQL Databases Tutorial » » »バックアップと復元する方法続きを読む(エクスポートおよびインポート)はMySQLデータベースのチュートリアル» » »


MySQL Error 1170 (42000): BLOB/TEXT Column Used in Key Specification Without a Key Length MySQLのエラー1170 ( 42000 ) :はBLOB / TEXTカラムキー仕様のキーの長さで使用

Monday, July 9th, 2007 2007年7月9日(月)

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:新しいテーブルを作成するとき、または主キー、一意制約、インデックス、またはMySQLデータベースにALTER TABLEの操作ステートメントを使用して新しいインデックスを定義するには、既存のテーブルを変更すると、次のエラーが発生すると、完了からコマンドを禁止する:

ERROR 1170 (42000): BLOB/TEXT column ‘field_name’ used in key specification without a key length 1170エラー( 42000 ) :はBLOB / TEXTカラム' field_name 'キー仕様のキーの長さで使用

Continue reading MySQL Error 1170 (42000): BLOB/TEXT Column Used in Key Specification Without a Key Length » » »続きを読むMySQLのエラー1170 ( 42000 ) :はBLOB / TEXTカラムキー仕様のキーの長さ» » »なしで使用

Remove or Trim First or Last Few Characters in MySQL Database with SQLまずトリムを削除するか、またはSQLでのMySQLのデータベースへの最後の数文字

Monday, April 23rd, 2007 2007年4月23日(月)

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. MySQLデータベースにもう1つの有用な文字列関数TRIM ( )は、マッチングの先頭または末尾の文字を削除した後も、接頭辞や接尾辞として知られているテキスト文字列が返されます。 It’s been described by MySQL reference as function that returns the string str with all remstr prefixes or suffixes removed.この関数としてMySQLリファレンスすべてremstr接頭辞や接尾辞を返すとstrという文字列で記述されて削除されます。 If none of the specifiers BOTH, LEADING, or TRAILING is given, BOTH is assumed.両方指定する場合は、大手、または末尾に、両方を想定しています指定されていない。 remstr is optional and, if not specified, spaces are removed. remstrはオプションですと、指定された場合は、スペースが削除されます。

Continue reading Remove or Trim First or Last Few Characters in MySQL Database with SQL » » »続きを読む最初のトリムを削除するかまたはSQL » » »でのMySQLのデータベースへの最後の数文字

How to Find and Replace Text in MySQL Database using SQLどのようにしてMySQLデータベースにSQLを使用してテキストを置換して下さい

Monday, April 23rd, 2007 2007年4月23日(月)

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). MySQLデータベースは便利、単純な文字列置換機能している( )は、一致する文字列を新しい文字列( to_string )に取って代わられる( from_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.これがあれば便利です検索すると、多くのレコードまたは行を、会社名、郵便番号、 URLまたはスペルミスの変化などに影響をテキスト文字列を置き換える必要があります。

Continue reading How to Find and Replace Text in MySQL Database using SQL » » »テキストを置換する方法を、 MySQLデータベースにSQL » » »続きを読むを使用して下さい

How to Escape Characters in Oracle PL/SQL QueriesどのようにOracleのPL / SQLのクエリの文字をエスケープする

Saturday, March 24th, 2007 2007年3月24日(土)

Oracle databases reserve some special characters with specific meaning and purpose within Oracle environment. Oracleデータベースと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.これらの予約文字を含める_ (アンダースコア)は、これと' (または二重引用符)の値をマークするために使用さアポストロフィ任意の文字の0回以上の出現にマッチするために使用さ(パーセンテージ) %正確に1文字と一致するように使用されるワイルドカード文字を提供します。 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.これらの特殊文字を文字通りときにOracleのSQLクエリを構築し、解釈されません結果にエラーが発生することがありますが、特に文字列のLIKEキーワードで検索を実行戻った。 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.これは、 Oracle 、文字通りのプリセットの代わりに文字列値の一部として意味を解釈することができますこれらの文字を使用するには、割り当てられた文字をエスケープする必要があります。

Continue reading How to Escape Characters in Oracle PL/SQL Queries » » »続きを読むどのようにOracleのPL / SQLのクエリ» » »の文字をエスケープする