The FASTEST way to unload data to CSV

  Рет қаралды 4,838

SQL and Database explained!

SQL and Database explained!

Күн бұрын

Пікірлер: 5
@ge0rgej0seph
@ge0rgej0seph 3 жыл бұрын
in sqldeveloper we had a hint /*CSV*/ that was useful
@TheMrTalliban
@TheMrTalliban 3 ай бұрын
we use exactly the same pro*c program and it's slow as heck. 1-2 Mb/s.
@DatabaseDude
@DatabaseDude 3 ай бұрын
Then you're doing something wrong. Thus from a VM on my 3 year old laptop SQL> select bytes/1024/1024/1024 from user_segments where segment_name = 'T'; BYTES/1024/1024/1024 -------------------- 1.25488281 [oracle@db23oel8 demo]$ ./oracle-ascii-unload userid=scott/tiger@db21pdb1 arraysize=1000 sqlstmt="select * from t" > /tmp/demo.out Unloading 'select * from t' Array size = 1000 OWNER|OBJECT_NAME|SUBOBJECT_NAME|OBJECT_ID|DATA_OBJECT_ID|OBJECT_TYPE|CREATED|LAST_DDL_TIME|TIMESTAMP|STATUS|TEMPORARY|GENERATED|SECONDARY|NAMESPACE|EDITION_NAME|SHARING|EDITIONABLE|ORACLE_MAINTAINED|APPLICATION|DEFAULT_COLLATION|DUPLICATED|SHARDED|IMPORTED_OBJECT|CREATED_APPID|CREATED_VSNID|MODIFIED_APPID|MODIFIED_VSNID 7532400 rows extracted Elapsed: 00:00:14
@rydmerlin
@rydmerlin 3 жыл бұрын
FWIW I use Dbdivs and @export which all uses JDBC. Would unload data work if you had your data in a view? Does this assume you're doing this on the same machine that's running oracle server? How will it format Timestamps/Dates etc?
@DatabaseDude
@DatabaseDude 3 жыл бұрын
SQLcl UNLOAD only works on tables unfortunately. Yes, all on same machine. Networks obviously add their own impact Timestamps/dates etc are controlled via NLS
Even faster than DBMS_PARALLEL_EXECUTE
10:44
SQL and Database explained!
Рет қаралды 4,2 М.
The KEEP clause will KEEP your SQL queries SIMPLE!
7:06
SQL and Database explained!
Рет қаралды 4,3 М.
Confronting Ronaldo
00:21
MrBeast
Рет қаралды 27 МЛН
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
My THREE rules for SQL TUNING
12:45
SQL and Database explained!
Рет қаралды 4,4 М.
Oracle SQL Developer Tips and Tricks: Data Edition
29:09
Jeff Smith
Рет қаралды 19 М.
Explaining Explain Plans
59:59
Oracle Developers
Рет қаралды 41 М.
Should you use AUTOEXTEND?
10:00
SQL and Database explained!
Рет қаралды 1,8 М.
How to Find Slow SQL: Databases for Developers: Performance #9
11:16
The Magic of SQL
Рет қаралды 17 М.
The five-step guide to SQL tuning | CloudWorld 2022
25:59
Oracle
Рет қаралды 21 М.
How can I speed up a query if an index cannot help?
8:20
SQL and Database explained!
Рет қаралды 17 М.
Become a Materialized View SUPER HERO !
7:05
SQL and Database explained!
Рет қаралды 10 М.
Faster Inserts!
5:06
SQL and Database explained!
Рет қаралды 6 М.
The JOIN syntax in SQL that no-one knows about
5:12
SQL and Database explained!
Рет қаралды 17 М.