Load 5 Million Rows In Oracle |

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ม.ค. 2025

ความคิดเห็น • 97

  • @gauravgiri2020
    @gauravgiri2020 5 ปีที่แล้ว +4

    You are doing a great job! We love you.

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +1

      Thanks buddy !

  • @aravindhreturns
    @aravindhreturns 4 ปีที่แล้ว +3

    19:11
    You : Yes, We do have.
    Me : What don't you have?
    🤣

    • @dbagenesis
      @dbagenesis  4 ปีที่แล้ว +2

      ;) We will have everything to support DBAs around the world!

  • @roshanjohn3076
    @roshanjohn3076 5 ปีที่แล้ว +1

    @25:50-25:53 You mean the SID on Primary DB and Standby DB must be same? We used to set the SID on Primary and Standby DB different and it is a headache to change the data souce on application in case there is a switchover.

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +1

      Hahaha.. I have been there. If thats that case, create a service (with TAF enabled) on your primary and allow clients to connect DG environment using the TAF service.
      The service will run only on active primary and you do not have to deal with different SIDs.
      When you perform swtichover / failover, the clients will auto connect to service because the service will auto come up on new primary.
      Check this article on how to setup TAF in data guard: support.dbagenesis.com/knowledge-base/client-connectivity-in-data-guard-configuration/

    • @roshanjohn3076
      @roshanjohn3076 5 ปีที่แล้ว

      @@dbagenesis Thanks a lot Arun. I will implement same.

  • @nihalnadaf8126
    @nihalnadaf8126 5 ปีที่แล้ว +2

    If we issue rebuild index online. what steps goes on internally and whats, the reason high archive generation that time.

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +2

      The INDEX REBUILD ONLINE is slow compared to INDEX REBUILD without the online clause. This is because with INDEX REBUILD ONLINE, it will wait for any existing DML commands that holds lock and proceed with index rebuild once the locks are released.
      When you run ALTER INDEX REBUILD command, it will acquire exclusive lock immediately and blocks all DMLs during the rebuild process.
      Tip: you can also use NOLOGGING clause with INDEX REBUILD to avoid high archive generation!

    • @nihalnadaf8126
      @nihalnadaf8126 5 ปีที่แล้ว +2

      @@dbagenesis Thanks a lot arun! lots of things learn from you!😊

  • @avid2395
    @avid2395 5 ปีที่แล้ว +2

    please explain why need to set OS kernel parameter in standalone database and oracle RAC database ?
    please explain parameter wise.

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +1

      Its a pre-requisite requirements by Oracle. Read Oracle documentation and search on google "Oracle installation pre-requisites". You will get to know each and every single parameter.

  • @mahmudurkhan5754
    @mahmudurkhan5754 5 ปีที่แล้ว +2

    Can you make some videos for Oracle EBS ?

  • @vishalkunden4318
    @vishalkunden4318 5 ปีที่แล้ว +1

    I have drop temp tablespace on primary database created new temp tablespace but same temp tablespace was not created on standy database.

    • @nihalnadaf8126
      @nihalnadaf8126 5 ปีที่แล้ว +1

      Temp file not created automatically, coz no redo generation happens for the temp file. you should add manually.

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +1

      Lets look at what Oracle has to say about it:
      The addition of temporary files to TEMP tablespaces in the primary site is not handled automatically through the normal redo apply mechanisms in the same way as regular datafiles if the parameter standby_file_management is set to AUTO. The DBA must manually synchronised the primary and standby tempfile configuration if they require both the sites to be the same.

  • @JigneshMakwana1
    @JigneshMakwana1 4 ปีที่แล้ว +2

    Sorry Arun but I don't agree with the statement is to insert 5m records (video time 6:50) and do commit. we should have frequent commit.. i.e. commit after every 10k/10k .

  • @himanshugarg4846
    @himanshugarg4846 5 ปีที่แล้ว +2

    Hi Arun, will you upload any video in near future for the patching activity?
    How the psu and cpu patches differ from each other?

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +2

      Noted! I will upload it soon.

    • @itisvikash
      @itisvikash 4 ปีที่แล้ว

      @@dbagenesis thanks a ton Arun bhaiya. Do make this video non the patching in depth I mean, patching it's types, how patching on the RAC is different from patching on the Dataguard ?

  • @piturothana
    @piturothana ปีที่แล้ว

    Sir, any way to retrieve millions records in short period in oracle?

  • @mendoncalan
    @mendoncalan 3 ปีที่แล้ว

    How indexs works in Oracle?

  • @SANDATA764
    @SANDATA764 5 ปีที่แล้ว +1

    Your videos are helpful
    Thanks again

  • @9890691169
    @9890691169 4 ปีที่แล้ว +2

    Q2. As you said we should keep the old binaries for atleast 30days after upgrade. Should we keep comparability parameter to old one for 30days too so that if require we can downgrade the db.

  • @matheenahamed2692
    @matheenahamed2692 5 ปีที่แล้ว +1

    Thanks for 2nd session 👍

  • @matheenahamed2692
    @matheenahamed2692 5 ปีที่แล้ว +1

    Can you please explain about types of protection modes in dataguard and their purpose?

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +2

      Noted ! will be answering it in upcoming episodes.

    • @matheenahamed2692
      @matheenahamed2692 5 ปีที่แล้ว

      @@dbagenesis Thanks ☺️

  • @Mahalakshmis-world
    @Mahalakshmis-world ปีที่แล้ว

    How to overcome pga issue

  • @Amoory-Kayan
    @Amoory-Kayan 5 ปีที่แล้ว +1

    Hi Arun, thanks for your explaination,
    I have an issue and need your suggestion.
    My database is 12c, i have tables with partitions
    My issue, when I add a new partitions to the tables, the indexes got invalid and it took much time to compile, because its Global index, not local index.
    Could you please explain the difference between Global and local, and what will happen if I replaced the Global index with local index?
    Regards

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +1

      Offcourse, it will take time. A global index is like one index for multiple table partitions. A local index is like one-to-one index partition for each table partition.
      At any given scenario, local index will be faster compared to Global index.

    • @Amoory-Kayan
      @Amoory-Kayan 5 ปีที่แล้ว +1

      @@dbagenesis thanks for your quick reply

  • @itisvikash
    @itisvikash 4 ปีที่แล้ว +1

    I installed VMware on my laptop which has as host windows 7 . Now I created VMware machine and installed oracle Linux into it. The size of virtual hard disk grew to the 40 GB as I had created many databases but then I deleted all the databases. Now the size of the virtual hard disk is still 40 GB while it has no data into it. Can you tell me how to reclaim the size of virtual hard disk ?

    • @dbagenesis
      @dbagenesis  4 ปีที่แล้ว

      Good question but I am not an virtualization platform expert. You will have to google it up or consult someone from vmware.

  • @PKBIJ82
    @PKBIJ82 5 ปีที่แล้ว +1

    How can I change FQDN in oracle12c 2 node rac as my server is being relocated,please help!

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +1

      You can use below command to just change the SCAN name:
      srvctl modify scan -n racnodepdb-orascan
      NOTE:
      There are many steps involved in order to move / modify scan when there is a change in subnet / network / scan ips etc...

    • @PKBIJ82
      @PKBIJ82 5 ปีที่แล้ว

      @@dbagenesis Thanks

  • @amitshinde9724
    @amitshinde9724 5 ปีที่แล้ว +1

    what are the difference between NETCA and NETMGR

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +2

      Netca is a configuration Utility it is used to configure the tns and listener files.
      Netmgr is used to monitor the status of listener and find the connectivity issues.

  • @mahmudurkhan5754
    @mahmudurkhan5754 4 ปีที่แล้ว +1

    Keep continue sir

  • @roshanjohn3076
    @roshanjohn3076 5 ปีที่แล้ว +1

    which commands do you use to get PGA/SGA stats?

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +1

      Query to find memory used by each oracle session:
      ==========================================
      SELECT to_char(ssn.sid, '9999') || ' - ' || nvl(ssn.username, nvl(bgp.name, 'background')) ||
      nvl(lower(ssn.machine), ins.host_name) "SESSION",
      to_char(prc.spid, '999999999') "PID/THREAD",
      to_char((se1.value/1024)/1024, '999G999G990D00') || ' MB' " CURRENT SIZE",
      to_char((se2.value/1024)/1024, '999G999G990D00') || ' MB' " MAXIMUM SIZE"
      FROM v$sesstat se1, v$sesstat se2, v$session ssn, v$bgprocess bgp, v$process prc,
      v$instance ins, v$statname stat1, v$statname stat2
      WHERE se1.statistic# = stat1.statistic# and stat1.name = 'session pga memory'
      AND se2.statistic# = stat2.statistic# and stat2.name = 'session pga memory max'
      AND se1.sid = ssn.sid
      AND se2.sid = ssn.sid
      AND ssn.paddr = bgp.paddr (+)
      AND ssn.paddr = prc.addr (+);
      Also, check this script: www.dba-oracle.com/t_query_to_display_cpu_ram.htm

    • @roshanjohn3076
      @roshanjohn3076 5 ปีที่แล้ว

      @@dbagenesis Thanks Arun :)
      Is the v$sga_dynamic_components ok? If the summation of the different SGA components from the current size is equal to the SGA_MAX_SIZE and the server is swapping, does this mean RAM has to increased?

  • @rajsankarblogs
    @rajsankarblogs 4 ปีที่แล้ว

    Sir we created a view which scan 5 lakhs records and its take 10 hrs which is very bad how to avoid it

  • @mohdfaizan4663
    @mohdfaizan4663 4 ปีที่แล้ว

    I have a query regarding tablespace High Water Mark. I have tablespace name AUDIT_DATA in my UAT and all my audit data will be stored in this tablespace, after a month the size of this tablespace is approx. 25G and I suppose to do the truncate the AUD$ table after taking the backup. But the physical space was not released after truncating the table, it remains shows 25G of the data file. What can I do to release the space also. Please help me, I have to do this job in the live database.

  • @rajsankarblogs
    @rajsankarblogs 4 ปีที่แล้ว

    Where we send you code

  • @9890691169
    @9890691169 4 ปีที่แล้ว +1

    if we have TDE implemented on a database can we still import it to another database?

    • @dbagenesis
      @dbagenesis  4 ปีที่แล้ว

      You can use Oracle Data Pump to export and import tables that have encrypted columns.
      When you use Oracle Data Pump to export and import tables containing encrypted columns, it uses the ENCRYPTION parameter to enable encryption of data in dump file sets.
      The ENCRYPTION parameter allows the following values:
      ENCRYPTED_COLUMNS_ONLY: Writes encrypted columns to the dump file set in encrypted format
      DATA_ONLY: Writes all of the data to the dump file set in encrypted format
      METADATA_ONLY: Writes all of the metadata to the dump file set in encrypted format
      ALL: Writes all of the data and metadata to the dump file set in encrypted format
      NONE: Does not use encryption for dump file sets

  • @mahmudurkhan5754
    @mahmudurkhan5754 5 ปีที่แล้ว +1

    Good job sir

  • @Chitikireddyramesh
    @Chitikireddyramesh 5 ปีที่แล้ว +1

    How to mining data using redo log files

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว

      Will be answering this in one of the upcoming episodes.

    • @Chitikireddyramesh
      @Chitikireddyramesh 5 ปีที่แล้ว +1

      K thank so much

  • @foreversn4117
    @foreversn4117 4 ปีที่แล้ว

    your videos are so amazing really....greatly explained....please keep posting videos...

    • @dbagenesis
      @dbagenesis  4 ปีที่แล้ว

      Thank you, I will

  • @sureshhello-zn4cw
    @sureshhello-zn4cw 5 ปีที่แล้ว +2

    First comment sir
    Ur article are very helpful sir thanks

  • @rehantayyab82
    @rehantayyab82 5 ปีที่แล้ว +1

    did u show somewhere is this video how to load 5 million rows in a table ?

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว

      Nope, #dailyDBA show is only about QnA, I will be posting activity videos separately.

  • @komla4904
    @komla4904 3 ปีที่แล้ว +1

    Great content !

  • @arpitseth96
    @arpitseth96 5 ปีที่แล้ว +1

    Hello Arun,
    I want some suggestions from you that
    As a fresher would you recommend anyone for a oracle DBA..

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +1

      Yup, if you are like me who hates programming, then yes, you should go for Oracle DBA career.
      But also if you think you just need to learn few concepts and settle your career in DBA, it won't last long. You must be constantly upgrading your skills and keep up with market changes.

    • @arpitseth96
      @arpitseth96 5 ปีที่แล้ว

      @@dbagenesis i want to pursue Career in oracle but cofused as a fresher which version of oracle should i choose to learn first 11g?
      Or should i go with oracle 12c certification direct..

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +1

      @@arpitseth96 First master any one version and all other versions will be a cake walk. Like for windows, if one learns any one version, all other versions become cake walk. You do not go for windows trainings everytime windows releases new version right !!
      Go for 12c for now and master it, forget about 11g, 18c and 19c versions ... !!! Become master of any one version first ;)

    • @arpitseth96
      @arpitseth96 5 ปีที่แล้ว

      @@dbagenesis Thanks for your suggestions sir...😊

  • @harshavardhanrajuch4261
    @harshavardhanrajuch4261 5 ปีที่แล้ว +1

    Hi sir, i have seen your video's it is very useful..

  • @udaykiran60
    @udaykiran60 5 ปีที่แล้ว +1

    Thanks for your video, Here is my question if I want to learn on more databases administration which one I should take up , Right now two database admin revolving on my mind "oracle Big data cloud or Sql server " please suggest. . Thanks in advance. .

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว

      I am not sure about your background so cannot give you good suggestion on this but If you ask me for a good career for next 5 to 7 years would be Oracle Golden Gate!
      Database replication is a business requirement whether your DB is on physical servers of cloud.

    • @udaykiran60
      @udaykiran60 5 ปีที่แล้ว +1

      @@dbagenesis Thanks Arun for your reply , My background is Oracle Apps dba and core dba.

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว

      You can and should go for Golden Gate along with "Cloud Migration" skillset.

  • @nasarkhan8956
    @nasarkhan8956 3 ปีที่แล้ว

    Hey Arun, suppose we have 4gb SGA and we want to insert 50GB data into database with simple insert statements. How insert would process. I want to understand processing cycle.

  • @matheenahamed2692
    @matheenahamed2692 5 ปีที่แล้ว +1

    What is the Time limit for RMAN backup and what happens if RMAN backup becomes old? Where it will keep old rman backup?

    • @nihalnadaf8126
      @nihalnadaf8126 5 ปีที่แล้ว +2

      Its depend on your RMAN backup retention policy or what recovery windows you decided. if backup get beyond the retention this become the obsolete one which means no longer needed.

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +2

      See Nihal comment

  • @vigneshchinna358
    @vigneshchinna358 5 ปีที่แล้ว +1

    I have one doubt.
    2 DB in a single server.
    1st DB register with listener
    2nd DB register with local Lister
    No 1 DB is down.
    No2 is up and running.
    Even though connection is try to connect NO1 DB.
    Same host but different port no.
    Kindly give your valuable suggestions.

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว

      Could you describe in detail and when you say No 1 is done, is it DB or listener? Be specific

    • @vigneshchinna358
      @vigneshchinna358 5 ปีที่แล้ว

      @@dbagenesis No 1 is DB

  • @sai3276
    @sai3276 5 ปีที่แล้ว +1

    Hi Arun,
    I'm fresher for DBA so kindly suggest me what kind of technology(course) can i learn to improve my DBA Career

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +1

      First get OCA certified and then OCP. Once you complete both trainings, you get grate deal of hands on experience. Having working experience is very important!
      Later on you can choose to learn Oracle Golden Gate which will give you career stability for next 5 to 7 years!

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +1

      Also, first finish all the free courses that we offer on our website: dbagenesis.com/courses

    • @sai3276
      @sai3276 5 ปีที่แล้ว

      @@dbagenesis Thanks 😊

    • @srinivasaraov6343
      @srinivasaraov6343 5 ปีที่แล้ว

      @@dbagenesis how to determine how much memory (sga and pga)is needed for my database instance interms of OLTP and DW Environments. And how to prevent memory leaks on both database instance and server level.

  • @sunilpuli9659
    @sunilpuli9659 3 ปีที่แล้ว

    5M records if we put outside commit. We can get redo log error or buffer is full

  • @arupnaskar7433
    @arupnaskar7433 3 ปีที่แล้ว

    Hi sir, I got error as ora-03113, unable to open database after mount. This happen after applied the patch. Also i have dataguard configured

    • @dbagenesis
      @dbagenesis  3 ปีที่แล้ว

      Check server RAM and SWAP space.

  • @veerareddy6723
    @veerareddy6723 5 ปีที่แล้ว +1

    Hi Arun, Thank you so much for detailed explanation and your videos are very helpful. I have one doubt, in my procedure I am trying to insert data in temporary table by using select statement. How to improve the performance of this select statement. In select statement I am using aggregation function. This insert statement itself taking 30 to 45% of the time in procedure execution.

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว +1

      Look at select statement carefully and observer which Index is it using or if its going for full table scan.
      If possible, post the insert statement here. If not comfortable here, send it to support@dbagenesis.com

  • @zulalinho007
    @zulalinho007 2 ปีที่แล้ว

    Hi
    What is the best way to migrate and upgrade 25 GB 9i database on redhat 3 to 19c on redhat 7?
    Thanks

    • @dbagenesis
      @dbagenesis  2 ปีที่แล้ว

      Export and Import

  • @vishalkunden4318
    @vishalkunden4318 5 ปีที่แล้ว +1

    Strategy needs to be followed for better database performance.

    • @dbagenesis
      @dbagenesis  5 ปีที่แล้ว

      Completely makes sense !

  • @nayan8966
    @nayan8966 5 ปีที่แล้ว +2

    Yes can you make a one vedio on 12c new features backup and recovery with RMAN in details...

  • @ravir252
    @ravir252 3 ปีที่แล้ว

    DBA is not a requirement now due to cloud adoption