matheusdba

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 32 total)
  • Author
    Posts
  • in reply to: ALTER SYSTEM CANCEL SQL in the middle of a transaction #2292639
    matheusdba
    Keymaster

    It happens the same as if you kill a session in the middle of a transaction. It gets rolled back.
    For more info about the command, here are the docs: https://docs.oracle.com/en/database/oracle/oracle-database/18/admin/managing-processes.html#GUID-7D8E5E00-515D-4338-8B86-C2044F6D2957

    in reply to: Oracle Wallet and Encryption Key on Amazon RDS #2292637
    matheusdba
    Keymaster

    Amazon RDS manages the Oracle Wallet and Master Encryption Key for the DB Instance.

    in reply to: AWS: Oracle Options on RDS? #2292635
    matheusdba
    Keymaster

    The following Enterprise Edition Options are currently supported under the BYOL model:

    • Advanced Security (Transparent Data Encryption, Native Network Encryption)
    • Partitioning
    • Management Packs (Diagnostic, Tuning)
    • Advanced Compression
    in reply to: AWS: Oracle Data Guard on Multi-AZ? #2292633
    matheusdba
    Keymaster

    Oracle Data Guard is a High Availability feature available for Enterprise Edition of Oracle database. Amazon RDS currently uses a different synchronous replication technology and automatic failover functionality to provide Multi-AZ deployments for Oracle DB Instances. Multi-AZ deployments are available for all Oracle database editions supported by Amazon RDS.
    Keep in mind you do need to have both sides licensed, either through BYOL or AWS with license included.

    in reply to: How Oracle Licensing applies for VMware? #2292631
    matheusdba
    Keymaster

    Oracle counts VMware as soft partition technology, so it must license for the entire server. After licensing, multiple instances of Oracle databases can be run with no additional charge.

    See the following License example on the current Licensing Model for Oracle databases on VMware from VMwarews documentation (https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/solutions/oracle/oracle-databases-on-vmware-faq.pdf) For Oracle’s licensing information access: http://www.oracle.com/corporate/pricing/index.html.

    matheusdba
    Keymaster

    To invoke a superclass method that has been overridden in a subclass, you must either call the method directly through a superclass instance or use the super prefix in the subclass itself. From the point of view of the subclass, the super prefix provides an explicit reference to the superclass’ implementation of the method.

    // From subclass
    super.overriddenMethod();
    in reply to: Java: Is it possible to override the main method? #2292627
    matheusdba
    Keymaster

    NO, because main is a static method. A static method can’t be overridden in Java.

    in reply to: Java: Can overloaded methods be overridden too? #2292625
    matheusdba
    Keymaster

    Yes, derived classes still can override the overloaded methods. Polymorphism can still happen. Compiler will not binding the method calls since it is overloaded, because it might be overridden now or in the future.

    in reply to: Java: equals() versus “==” #2292623
    matheusdba
    Keymaster

    Equals() method is defined in Object class in Java and used for checking the equality of two objects defined by business logic.
    “==” or equality operator in Java is a binary operator provided by Java programming language and used to compare primitives and objects. public boolean equals(Object o) is the method provided by the Object class. The default implementation uses == operator to compare two objects. For example: method can be overridden like String class. equals() method is used to compare the values of two objects.

    in reply to: Preepmtive Scheduling x Time Slicing #2292621
    matheusdba
    Keymaster

    Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks.
    The scheduler then determines which task should execute next, based on priority and other factors.

    in reply to: Java: Garbage Collector Avoid OutOfMemory? #2292619
    matheusdba
    Keymaster

    Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection.

    in reply to: Java: yield() x sleep() #2292617
    matheusdba
    Keymaster

    When a task invokes its yield() method, it returns to the ready state. When a task invokes its sleep() method, it returns to the waiting state.

    in reply to: Duplicate schema on the database #2292615
    matheusdba
    Keymaster

    A simple way is to use datapump for this. You can even directly use impdp with a databaselink to the own database to do the “close”, like:

    impdp system/manager schemas=A remap_schema=A:B network_link=MY_OWN_DB

    Note that if you use dblink no parallel will be possible. In some cases it will be faster if you do expdp to a dumpfile with parallelism and then import it again with impdp in parallel too.

    in reply to: PLSQL: %TYPE x %ROWTYPE #2292613
    matheusdba
    Keymaster

    Both %TYPE and %ROWTYPE are used to define variables in PL/SQL as it is defined within the database. If the datatype or precision of a column changes, the program automatically picks up the new definition from the database without having to make any code changes.

    The %TYPE and %ROWTYPE constructs provide data independence, reduces maintenance costs, and allows programs to adapt as the database changes to meet new business needs.

    %TYPE
    %TYPE is used to declare a field with the same type as that of a specified table’s column. Example:

    DECLARE
    v_EmpName emp.ename%TYPE;
    BEGIN
    SELECT ename INTO v_EmpName FROM emp WHERE ROWNUM = 1;
    DBMS_OUTPUT.PUT_LINE('Name = ' || v_EmpName);
    END;
    /

    %ROWTYPE
    %ROWTYPE is used to declare a record with the same types as found in the specified database table, view or cursor. Examples:

    DECLARE
    v_emp emp%ROWTYPE;
    BEGIN
    v_emp.empno := 10;
    v_emp.ename := 'XXXXXXX';
    END;
    /
    in reply to: What ML are in place on Autonomous Databases? #2292611
    matheusdba
    Keymaster

    Autonomous Databases comes with over 30 machine learning algorithms implemented as SQL functions that leverage the strengths of the Oracle Autonomous Database. Oracle Machine Learning algorithms perform all processing inside the Autonomous Database and can mine data tables and views, star schema data including transactional data, aggregations, unstructured data i.e. CLOB data type (using Oracle Text to extract tokens) and spatial data.
    Oracle Machine Learning for SQL functions takes full advantage of database parallelism for model build and model apply and honor all data and user privileges and security schemes. Data scientists can collaborate to build, evaluate and deploy machine learning models using Zeppelin based Oracle Machine Learning Notebooks. Oracle Machine Learning models can be included in SQL queries, BI dashboards and embedded in real-time applications.
    This is a nice doc with more info about it: https://www.oracle.com/technetwork/database/options/advanced-analytics/oml19c-white-paper-5601561.pdf

Viewing 15 posts - 16 through 30 (of 32 total)