Create User SQL in SAP HANA Database

SAP ABAP Expert
Updated on 21-Feb-2020 07:52:45

3K+ Views

You can achieve this by running the below SQL query −>CREATE USER TEST password “Welcome1$$”  VALID FROM ‘2017-12-05 11:00:00’ UNTIL ‘2018-12-08 12:00:00’; CREATE USER DUMMY password “Welcome1$$”  VALID FROM NOW UNTIL FOREVER;Note that password passed in this SQL should meet password policy of SAP HANA system otherwise user creation will be failed.

Check Existing Password Policy of SAP HANA System

SAP ABAP Expert
Updated on 21-Feb-2020 07:49:33

1K+ Views

You can check this information under New User in SAP HANA. The below snapshot shows the New User dialog in SAP HANA Studio and the password rule that is displayed when hovering over the password field.

Setting Password Expire Notification in SAP HANA

SAP ABAP Expert
Updated on 21-Feb-2020 07:48:45

1K+ Views

Parameter    password_expire_warning_timeDefault Value 14 (days)Parameter definitionNotification is transmitted via the database client (ODBC or JDBC) and it is up to the client application to provide this information to the user.If you enter the value 0, the user does not receive notification that his or her password is due to expire.The system also monitors when user passwords are due to expire and issues a medium priority alert. This may be useful for technical database users since password expiration results in the user being locked, which may affect application availability. It is recommended that you disable the password lifetime check of technical ... Read More

Using SAP HANA Cockpit for HANA Administration

SAP ABAP Expert
Updated on 21-Feb-2020 07:42:24

390 Views

SAP HANA Cockpit with Fiori-based Launchpad shows the content in the form of tiles arranged in groups. Using these tiles, you can access individual applications and can also access app-specific data for immediate review.You can also perform a drill on these tiles to see the detailed information about specific applications. Note that full administration of SAP HANA is not possible using SAP HANA cockpit and you have to use SAP HANA studio for those.

Using Roles Tab in SAP HANA System

SAP ABAP Expert
Updated on 21-Feb-2020 07:39:46

174 Views

Roles tab is used to view the existing roles in HANA system and you can also create a new role in HANA system to add to user’s profile as per requirement.

Using Database View in SAP HANA

SAP ABAP Expert
Updated on 21-Feb-2020 07:31:51

945 Views

A view in a database is defined as Virtual table which derives its data from one or more columns of one table or multiple tables. A view can be created using tables of one or more database and is stored in database where it is created.You can find views in SAP HANA Studio under schema name −

Change Default Sort Order of MySQL Tables

Giri Raju
Updated on 21-Feb-2020 07:09:56

729 Views

As we know that when we use ORDER BY Clause, the default sort order of MySQL table is ascending, start with the smallest value. We can change this default order by using DESC keyword along with ORDER BY Clause. The following example will clarify this concept −>mysql> Select * from STUDENT ORDER BY Name DESC; +--------+--------+--------+ | Name   | RollNo | Grade  | +--------+--------+--------+ | Gaurav |    100 | B.tech | | Aryan  |    165 | M.tech | | Aarav  |    150 | M.SC   | +--------+--------+--------+ 3 rows in set (0.00 sec)We can see that after using the keyword DESC the default order has been changed from ascending to descending.

Create Unmodifiable List in Java 9

raja
Updated on 21-Feb-2020 06:02:16

514 Views

A list considered to be unmodifiable if the elements can't be added, removed, or replaced from a list once an unmodifiable instance of a list has created. The static factory method: List.of() provides a convenient way to create unmodifiable lists in Java 9.An instance of a list created by using the List.of() method has the following characteristics.The list returned by a factory method is conventionally immutable. It means that the elements can't be added, removed, or replaced from a list. Calling any mutator method on the List causes UnsupportedOperationException.If the contained elements of List are mutable, it may cause the List's contents to appear to ... Read More

How Does isinstance Function Work in Python

Rajendra Dharmkar
Updated on 21-Feb-2020 05:17:14

264 Views

We can derive a class from multiple parent classes as follows −class A:        # define your class A ..... class B:         # define your class B ..... class C(A, B):   # subclass of A and B .....We can use isinstance() function to check the relationships of two classes and instances.Theisinstance(obj, Class) boolean function returns true if obj is an instance of class Class or is an instance of a subclass of Class

issubclass Function in Python

Rajendra Dharmkar
Updated on 21-Feb-2020 05:13:17

114 Views

We can derive a class from multiple parent classes as follows −class A:        # define your class A ..... class B:         # define your class B ..... class C(A, B):   # subclass of A and B .....We can use issubclass() function to check the relationships of two classes and instances.For example, theissubclass(sub, sup) boolean function returns true if the given subclass sub is indeed a subclass of the superclass sup.

Advertisements