Family & Friends

JLPT N3 – Vocabulary Family and Friends Information

KanjiHiraganaEnglishMeaning
家族。友人かぞく ゆうじんka zo ku yu u ji nnfamily friend
おやo yaparent
父親ちちおやchi chi o yafather
母親ははおやha ha o yamother
両親りょうしんryo u shi nnparents
祖父そふso fugrandfather
祖母そぼso bograndmother
おじおじo jiuncle
おばおばo baaunt
息子むすこmu su koson
むすめmu su medaughter
おいo inephew
めいme iniece
まごma gograndchild
よめyo medaughter-in-law
長男ちょうなんcho u na nn1st son
次男じなんji na nn2nd son
三男さんなんsa nn na nn3rd son
長女ちょうじょcho u jo1st daughter
次女じじょji jo2nd daughter
三女さんじょsa nn jothird daughter
親せきしんせきshi nn se kirelative
親類しんるいshi nn ru irelative
上司じょうしjo u shiboss
友人ゆうじんyu u ji nnfriend
知人ちじんchi ji nnauquaintance
知り合いしりあいshi ri a iauquaintance
先輩せんぱいse nn pa iOne’s Senior
後輩こうはいko u ha iOne’s Junior
部下ぶかfu kasubordinate
同僚どうりょうdo u ryo uco-worker
仲間なかまna ka mafriends, company
同級生どうきゅうせいdo u kyu u se iclassmate
家庭かていka te ihome
うちうちu chimy home
実家じっかji kkaone’s parent’s home
他人たにんta ni nnothers
独身どくしんdo ku shi nnsingle

Time and periods

JLPT N3 – Vocabulary Lession 1

Time and Periods

KanjiHiraganaEnglishMeaning
時間じかんji ka nnTime
現在げんざいgen zaipresent
過去かこka kopast
未来みらいmi ra ifuture
将来のゆめしょうらいのゆめsho u rai no yu medream for the future
早朝そうちょうso u cho uearly morning
昼間は暖かいひるまはあたたかいhi ru ma ha a ta ta ka iwarm in daytime
日中にっちゅうni c chu udaytime
夜中よなかyo na kanight
真夜中まよなかma yo na kamidnight
深夜しんやshi nn yamidnight
時期などじきなどji ki na dotimes & periods
平日へいじつhe i ji tsuweekdays
休日きゅうじつkyu u ji tsuholiday
祝日しゅくじつshu ku ji tsunational holiday
週末しゅうまつshu u ma tsuweekend
年末年始ねんまつねんしnenn ma tsu nenn shiyear end new year
上旬じょうじゅんjo u ju nn1st 10 days of month
初旬しょじゅんsho ju nn2nd ten days of month
中旬ちゅうじゅんchu u ju nn2nd ten days of month
下旬げじゅんge ju nnlast ten days month
連休れんきゅうre nn kyu uconsecutive holiday
お盆休みおぼんやすみo bo nn ya su mibon holiday
週明けしゅあけsho u o kebeginning of week
年中無休ねんじゅうむきゅうnenn ju u mu kyu uevery day of year

How to rotate listener log online

How to rotate listener log online

In oracle listener log file contains a lot of useful information, like the program which was used for the connection, the IP address where the connection is coming from, the OS user which was used on the client and we can add many more to be recorded.

Since it records more information the log file will keep growing. We may need to do some maintenance to rotate the log. As the log file is actively used by oracle it will be difficult to rotate during db is online.

One best way is we can have procedure to off the listener logging and rotate the log and enable the listener logging during offbusiness hours. This does not required any downtime on the database

lsnrctl <<-EOF set current_listener
set log_status off
EOF

mv

lsnrctl <<-EOF set current_listener
set log_status on
EOF

How to connect Postgres SQL using Python

How to connect Postgres SQL using Python

Step 1: Confirm Postgres SQL is running fine

C:\Users\mudhalvan>psql -U mudhalvan testdb01
psql (11.1)
WARNING: Console code page (437) differs from Windows code page (1252)
8-bit characters might not work correctly. See psql reference
page “Notes for Windows users” for details.
Type “help” for help.

testdb01=# \d emp
Table “public.emp”
Column | Type | Collation | Nullable | Default
——–+—————+———–+———-+———
eno | integer | | |
ename | character(10) | | |

testdb01=# select * from emp;
eno | ename
—–+————
1 | Mudhalvan
2 | Aarthi
(2 rows)

Step 2: Confirm Python is installed and it has Library (psycopg2) to connect Postgres

If not install it

C:\WINDOWS\system32>pip install psycopg2
Collecting psycopg2
Installing collected packages: psycopg2
Successfully installed psycopg2-2.7.7

Step 3: Connect to database.

C:\WINDOWS\system32>python

Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

import psycopg2

conn=psycopg2.connect(“dbname=testdb01 user=mudhalvan password=xxxx”)
cur=conn.cursor()
cur.execute(“select * from emp”)
for line in cur:
… print(line)

(1, ‘Mudhalvan ‘)
(2, ‘Aarthi ‘)
cur.close()
conn.close()

Now you can write a simple .py script with the above lines and confirm it.

How to Install PgSQL (Postgres SQL) in windows

Step 1: Download Executable files
Download respective binaries for 32 Bit or 64 bit of latest available version

https://www.postgresql.org/

Step 2: Install the binaries

Once binary is downloaded and installed in the computer with respective username of windows user. 

Installation Directory: D:\PgSQL
Server Installation Directory: D:\PgSQL
Data Directory: D:\PgSQL\data
Database Port: 5432
Database Superuser: postgres
Operating System Account: NT AUTHORITY\NetworkService
Database Service: postgresql-x64-11
Command Line Tools Installation Directory: D:\PgSQL
pgAdmin4 Installation Directory: D:\PgSQL\pgAdmin 4
Stack Builder Installation Directory: D:\PgSQL

Step 3: Start the Postgres Service

D:\PgSQL>pg_ctl -D d:\pgsql\data initdb
The files belonging to this database system will be owned by user “mudhalvan”.
This user must also own the server process.

The database cluster will be initialized with locale “English_United States.1252”.
The default database encoding has accordingly been set to “WIN1252”.
The default text search configuration will be set to “english”.

Data page checksums are disabled.

fixing permissions on existing directory d:/pgsql/data … ok
creating subdirectories … ok
selecting default max_connections … 100
selecting default shared_buffers … 128MB
selecting dynamic shared memory implementation … windows
creating configuration files … ok
running bootstrap script … ok
performing post-bootstrap initialization … ok
syncing data to disk … ok

WARNING: enabling “trust” authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
–auth-local and –auth-host, the next time you run initdb.

Success. You can now start the database server using:

d:/pgsql/bin/pg_ctl -D d:/pgsql/data -l logfile start

D:\PgSQL>

Step 4: Start the Database server

D:\PgSQL>pg_ctl -D d:/pgsql/data -l logfile start
waiting for server to start…. done
server started

D:\PgSQL>

Step 5: Create Database

D:\PgSQL\bin>createdb -h localhost -U mudhalvan testdb01

Step 6: Connect to the database

D:\PgSQL\bin>psql -U mudhalvan testdb01 -h localhost
psql (11.1)
WARNING: Console code page (437) differs from Windows code page (1252)
8-bit characters might not work correctly. See psql reference
page “Notes for Windows users” for details.
Type “help” for help.

To List the databases

testdb01=# \l

Step 7: Create Table

testdb01=# create table emp (eno integer,ename char(10));
CREATE TABLE

Step 8: Describe the Table

testdb01=# \d emp
Table “public.emp”
Column | Type | Collation | Nullable | Default
——–+—————+———–+———-+———
eno | integer | | |
ename | character(10) | | |

Step 9: Insert the record into Table
testdb01=# insert into emp values(1,’Mudhalvan’);
INSERT 0 1
testdb01=# select * from emp;
eno | ename
—–+————
1 | Mudhalvan
(1 row)

Japan Tour Recommendation

1. Tokyo Area

Tokyo 23 Wards
Odaiba – 1 Day Pass

https://www.japan-guide.com/e/e3008.html

Disney Land or Disney Sea – 1 Day

https://www.tokyodisneyresort.jp/en/tdl/

Ueno Zoo and Akhibara – 1 Day

https://www.tokyo-zoo.net/english/ueno/
https://www.japan-guide.com/e/e3003.html

Tokyo SkyTree and Asakusa – 1 Day
https://www.japan-guide.com/e/e3064.html
https://www.japan-guide.com/e/e3004.html

Tokyo Sightseeing Bus – 1 Day
https://www.hatobus.co.jp/dom/feature/tomodachi/english/

Outside of 23 Wards

Yokohama Seaparadise – 1 Day
http://www.seaparadise.co.jp/english/index.html

Mount Fuji and Hakone – 1 Day
https://www.hatobus.com/int/en/detail/r362/

2. Osaka Area

Tokyo to Osaka – Shinkansen or Bullet Train
https://www.japan-rail-pass.com/japan-by-rail/travel-tips/tips-for-using-the-shinkansen
https://www.japan-guide.com/e/e2361.html

Universal Studio Japan
https://www.usj.co.jp/e/

Note: Will add more details and Information later when have a time

How to get DDL in Oracle

We can get the DDL of an object using GET_DDL()

It is a function of metadata package DBMS_METADATA.

Syntax:
select DBMS_METADATA.GET_DDL(‘TABLE’,'<table_name>’) from DUAL;

Example:

MUDHALVAN@UPGR:SQL> set long 1000
MUDHALVAN@UPGR:SQL> set pagesize 0
MUDHALVAN@UPGR:SQL> select DBMS_METADATA.GET_DDL(‘TABLE’,’EMP’) from DUAL;

Output:

CREATE TABLE “MUDHALVAN”.”EMP”
( “ENO” NUMBER(10,0) NOT NULL ENABLE,
“ENAME” VARCHAR2(20),
“DOB” DATE,
CONSTRAINT “EMP_PK” PRIMARY KEY (“ENO”)
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE “USERS” ENABLE
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE “USERS”

How to create VM from VDI(Virtual Disk Image) file

We can import appliance (virtual machine) from .ova files.

There are many OS images availabile with VDI(Virtual Disk Image) format

To create a virtual machine you need do the below steps.
1. Open Oracle VM virtualBox Manager

2. Click on Machine => New
Create Virtual Machine screen will appear

2.1 Name and Operating System
Now you will be able to see the “Create Virtual Machine” screen
Name :
Type :
Version:

Name – It is your VM name
Type – Select the OS Type of your VDI image appropriately. Windows, Linux.. Etc
Version – Select the OS Version

Example:
Name : UbuntuVM01
Type : Luinux
Version: Ubuntu 64Bit
2.2 Memory Size
Select the Memory size
2.3 Hard Disk
select “Use an existing virtual hard Disk file”
Select the location where you have VDI.
Now virtual machine will be ready for use.

Minano Nihongo 2 – Lesson 32

This week let us study Minano Nihongo II Lesson 32

Vocabulary:

 

Vocabulary
S. No Vocabulary Kanji Meaning Audio
1 うんどうします 運動します do exercise, play sport
2 せいこうします 成功します succeed
3 しっぱいします 失敗します fail
4 ごうかくします 合格します pass/success
5 もどります 戻ります go back, come
6 やみます やみます stop
7 はれます 晴れます sunny
8 くもります 曇ります cloudy
9 ふきます 吹きます blow(wind)
10 びょうきがなおります 病気が治ります recover from , get well
11 なおします 治します overcome(flu), repair
12 つづきます 続づきます continue
13 ひきます 引きます get(cold)
14 ひやします 冷やします make cool/cold
15 しんぱい 心配 worry
16 じゅうぶん 十分 enough, sufficient
17 おかしい おかしい strange, funny
18 うるさい うるさい noisy
19 やけどをします やけどをします get burned
20 けが けが wound
21 せき せき cough
22 そら sky
23 たいよう 太陽 sun
24 ほし star
25 つき moon
26 かぜ wind
27 きた north
28 みなみ south
29 にし 西 west
30 ひがし east
31 すいどう 水道 water supply/water service
32 こんや 今夜 this evening
33 ゆうがた 夕方 evening
34 まえ before
35 おそく 遅く late, late night
36 こんなに こんなに like this
37 そんなに そんなに like that
38 あんなに あんなに like that
39 もしかしたら もしかしたら maybe, perhaps
40 それはいけません それはいけません that is so bad
41 げんき げんき healthy
42 stomach
43 はたらきすぎ 働きすぎ overwork
44 むりをします 無理をします overdo
45 ゆっくりします ゆっくりします without hurry

Hiragana Chart

As part of the Japanese lesson learning, please send first few days on understanding the scripts.

In Theory Japanese language have three scripts.

  1. Hiragana – Easy to memories and write
  2. Katakana – Easy to memories and write. (This is very Helpful for Gaijins (Foreigners Like me)
  3. Kanji – It is what many of us know as Japanese scripts. (Historically many of the characters similarity on Chinese Characters) Don’t be afraid when you see it . difficult part is one character will have different meaning based on the location and place it is used. You don’t have to do doctorate on Kanji. Learn it for your business usage and to live. Day by day you will start understanding it. Good practice is try to always read kanji with Hiragana first stage.

Here is the Hiragana Chart. Please read each characters very carefully and memories it. From now don’t write anything on your own language. Write everything using hiragana characters though it may be difficult at starting point. I will try to find the related audios and GIF how to write in next post

Specialty of this chart also have the strokes how to write. If you start using this method it will be very helpful in future as it is method of writing Japanese

Hiragana Chart

 

 

 

1 3 4 5 6 7