In GIT, usually when a commit occurs, HEAD points to the latest commit.
For an example, there is a commit made in a file. You further made some changes. Later at some point, you realize that change is not required anymore. In this case, you need to point the head to the old HEAD. Below command should be used.
git checkout HEAD <<filename>>
In a nutshell – above command is used to discard changes in the working directory
git reset HEAD filename
Imagine you made changes to file1.txt and file2.txt and added to staging area. Further you accidentally made some changes to file3.txt and added to staging area. Later you realize, changes made to file3.txt is unnecessary.
So, in order to remove file3.txt from staging area, use below command
git reset HEAD <<filename>>
basically this command is used to unstage changes from staging area.
Remember, this command only removes file from staging area. The changes you made to the file remains available.
git reset commit_SHA
Imagine if you have made 10 commits on a single file. If in case, if you need to discard all the changes from 6th commit, you would use this command so that all commits from 7th to 10th commit will be removed.
git reset 232bfg2
here 232bfg2 is first 7 characters of git commit SHA
Today, I want to capture notes that I learnt from trailhead academy on connecting postman to a salesforce org.
To make postman allow changes at Salesforce org, we have to enable CORS policy in Salesforce. See below what does CORS mean.
CORS- Cross Origin Resource Sharing
It is a browser feature that controls how resources are requested from one site to another site. By configuring CORS, it enables special permissions for other external websites to access our salesforce data. In this case, we are enabling CORS for postman to access salesforce.
In GIT, usually when a commit occurs, HEAD points to the latest commit.
For an example, there is a commit made in a file. You further made some changes. Later at some point, you realize that change is not required anymore. In this case, you need to point the head to the old HEAD. Below command should be used.
git checkout HEAD <<filename>>
In a nutshell – above command is used to discard changes in the working directory
git reset HEAD filename
Imagine you made changes to file1.txt and file2.txt and added to staging area. Further you accidentally made some changes to file3.txt and added to staging area. Later you realize, changes made to file3.txt is unnecessary.
So, in order to remove file3.txt from staging area, use below command
git reset HEAD <<filename>>
basically this command is used to unstage changes from staging area.
Remember, this command only removes file from staging area. The changes you made to the file remains available.
git reset commit_SHA
Imagine if you have made 10 commits on a single file. If in case, if you need to discard all the changes from 6th commit, you would use this command so that all commits from 7th to 10th commit will be removed.
git reset 232bfg2
here 232bfg2 is first 7 characters of git commit SHA
Today, I want to capture notes that I learnt from trailhead academy on connecting postman to a salesforce org.
To make postman allow changes at Salesforce org, we have to enable CORS policy in Salesforce. See below what does CORS mean.
CORS- Cross Origin Resource Sharing
It is a browser feature that controls how resources are requested from one site to another site. By configuring CORS, it enables special permissions for other external websites to access our salesforce data. In this case, we are enabling CORS for postman to access salesforce.
Can join with any browser or JitSi android app.
All the Discussions are in Tamil.
Talk Details
Talk 0:
Topic : my Elisp ‘load random theme’ function
Description : I wanted to randomly load a theme in Emacs during startup. After i search in online, I achieved this
functionality using Emacs Lisp. this my talk Duration : 10 minutes
Name : Krishna Subramaniyan
About :GNU/Linux and Emacs user
Talk 1:
Topic : PDF generation using python
Description : To demo a python program which will generate a PDF output. Duration : 20 minutes
Name : Sethu
About : Member of KanchiLUG & Kaniyam IRC Channel
Talk 2:
Topic : distrobox – a wrapper on podman/docker
Description : Intro about the tool, why I had to use that and a demo Duration : 15 minutes
Name : Annamalai N
About : a GNU/Linux user
Talk 3:
Topic : Real Time Update Mechanisms (Polling, Long Polling, Server Sent Events)
Description : To demo Real Time Update Mechanisms with JS and Python Duration : 30 minutes
Name :Syed Jafer (parottasalna)
About : Developer. Currently teaching postgres at https://t.me/parottasalna
After Talks : Q&A, General discussion
About KanchiLUG : Kanchi Linux Users Group [ KanchiLUG ] has been spreading awareness on Free/Open Source Software (F/OSS) in
Kanchipuram since November 2006.
Anyone can join! (Entry is free)
Everyone is welcome
Feel free to share this to your friends
Can join with any browser or JitSi android app.
All the Discussions are in Tamil.
Talk Details
Talk 0:
Topic : my Elisp ‘load random theme’ function
Description : I wanted to randomly load a theme in Emacs during startup. After i search in online, I achieved this
functionality using Emacs Lisp. this my talk Duration : 10 minutes
Name : Krishna Subramaniyan
About :GNU/Linux and Emacs user
Talk 1:
Topic : PDF generation using python
Description : To demo a python program which will generate a PDF output. Duration : 20 minutes
Name : Sethu
About : Member of KanchiLUG & Kaniyam IRC Channel
Talk 2:
Topic : distrobox – a wrapper on podman/docker
Description : Intro about the tool, why I had to use that and a demo Duration : 15 minutes
Name : Annamalai N
About : a GNU/Linux user
Talk 3:
Topic : Real Time Update Mechanisms (Polling, Long Polling, Server Sent Events)
Description : To demo Real Time Update Mechanisms with JS and Python Duration : 30 minutes
Name :Syed Jafer (parottasalna)
About : Developer. Currently teaching postgres at https://t.me/parottasalna
After Talks : Q&A, General discussion
About KanchiLUG : Kanchi Linux Users Group [ KanchiLUG ] has been spreading awareness on Free/Open Source Software (F/OSS) in
Kanchipuram since November 2006.
Anyone can join! (Entry is free)
Everyone is welcome
Feel free to share this to your friends
Few weeks ago, Niagara had its Christmas lighting started. Went there with friends. We went there in the evening. Niagara is one of the greatest natural beauty, which we can see a million times. Visited the Casino there. Got 10$ free card and played with few slot machines. Won 3$ and lost all 13$. Though it was a free money, it was tough to stop the game.
Then, visited the wonderful lighting. It was a very long walk, in dark roads, along with glittering lights on the road sides. Kids enjoyed much to see them all.
Last Saturday, we had a grand event to celebrate the winter, organized by HeartComonos team. I volunteered a little amount for the event. We had nearly 2 months of preparation. All the volunteers made the event a memorable one. We had around 300 participants. The Bollywood dance team won all the attention. I had a makeover as ELF and was giving candy to all the kids there.
Daily IRC meetings for open source project mentoring
We are having daily meeting for open source project mentoring. Around 10 people are doing different projects. We are discussing many things like linux, Emacs, productivity, book reviews etc. Read the logs here – https://ircbot.comm-central.org:8080/kaniyam
2025 planning for kaniyam
Started a thread to plan the 2025 activities for Kaniyam Foundation. Write there what do you think on what we can do next year.
Ravishankar is the founding member of FreeTamilEbooks.com and a mentor for kaniyam. He started to work on these tasks. He gave a new theme and improved the SEO. Need more volunteers to work on other items. Let me know if you can spend few hours for FreeTamilEbooks.com
Winter / Snow started
Today, we got the very first snow fall of the year. It is mesmerizing to see all the green lands are turning into white. For 4 months, we will be in hibernate state. Have to plan many indoor events. I have tons of books to read, tasks to complete.
LLM dataset part 3 released
We are collecting large amount of Tamil text with shareable, open licensed content, for LLM and other research works. So far, collected 1.6 GB of text, from Tamil Wikipedia, FreeTamilEbooks, project madurai, tamilmunn publishers books, etc. Get the data from here – https://kaniyam.cloudns.nz/tamil_datasets/
Around Dec 25 to Jan 5, we will get winter break for schools. I am thinking of teaching python or scratch for kids in this break. Learning scratch for that. The graphics, the colors, drag/drop may be easy for kids. But it is tough for me as a terminal dweller. Yet to think and plan more on the training for kids. At least, I should teach the basics of programming and show a taste of making computers to obey our orders.
Weekly chess hours for kids
Started to teach chess for our condo kids. we conduct a weekly chess hour, to teach and play with other kids. Good to see that many kids know chess already and they all enjoy the game hours.
Moana 2
Watched Moana 2 yesterday. Viyan loved it. It is very difficult to being a part 2 movie as good as part 1. Moana team did a great job on this. Stunning graphics, good story line, nice music, heart melting songs make the move as a wonder. Don’t miss to watch it in theaters.
Books
completed – பேசத் தெரிந்த நிழல்கள் – sramakrishnan. Took it from a local library. It is a book full of review of world movies. Happy to read a physical tamil book apart from 1000s of miles.
In progress – Drupal, LLM, Digital Museums
100% savings on Thanksgiving Day
As usual, got 100% savings on Thanksgiving Day sales. Bought nothing. As we are following minimalism as much as possible, we feel that we have all the things required. I was thinking, if the name of the day is like “Genocide Memorial Day”, we won’t be rushing for shops to get offers and sales. They should rename the day to show the history.
Self-hosted social media – gotosocial
I am running a social media platform on my desktop, and interacting with the world using that. It is a software called ‘Gotosocial’. It is like twitter, but we can install on our own servers. The Fediverse activitypub protocol connects with other millions of such servers around the world.
Happy to see many Emacs, FOSS, Linux, Self hosting lovers are there to interact. Getting replies for all the questions I am asking there. It gives much happiness, to be with like-minded people, around the globe.
Few weeks ago, Niagara had its Christmas lighting started. Went there with friends. We went there in the evening. Niagara is one of the greatest natural beauty, which we can see a million times. Visited the Casino there. Got 10$ free card and played with few slot machines. Won 3$ and lost all 13$. Though it was a free money, it was tough to stop the game.
Then, visited the wonderful lighting. It was a very long walk, in dark roads, along with glittering lights on the road sides. Kids enjoyed much to see them all.
Last Saturday, we had a grand event to celebrate the winter, organized by HeartComonos team. I volunteered a little amount for the event. We had nearly 2 months of preparation. All the volunteers made the event a memorable one. We had around 300 participants. The Bollywood dance team won all the attention. I had a makeover as ELF and was giving candy to all the kids there.
Daily IRC meetings for open source project mentoring
We are having daily meeting for open source project mentoring. Around 10 people are doing different projects. We are discussing many things like linux, Emacs, productivity, book reviews etc. Read the logs here – https://ircbot.comm-central.org:8080/kaniyam
2025 planning for kaniyam
Started a thread to plan the 2025 activities for Kaniyam Foundation. Write there what do you think on what we can do next year.
Ravishankar is the founding member of FreeTamilEbooks.com and a mentor for kaniyam. He started to work on these tasks. He gave a new theme and improved the SEO. Need more volunteers to work on other items. Let me know if you can spend few hours for FreeTamilEbooks.com
Winter / Snow started
Today, we got the very first snow fall of the year. It is mesmerizing to see all the green lands are turning into white. For 4 months, we will be in hibernate state. Have to plan many indoor events. I have tons of books to read, tasks to complete.
LLM dataset part 3 released
We are collecting large amount of Tamil text with shareable, open licensed content, for LLM and other research works. So far, collected 1.6 GB of text, from Tamil Wikipedia, FreeTamilEbooks, project madurai, tamilmunn publishers books, etc. Get the data from here – https://kaniyam.cloudns.nz/tamil_datasets/
Around Dec 25 to Jan 5, we will get winter break for schools. I am thinking of teaching python or scratch for kids in this break. Learning scratch for that. The graphics, the colors, drag/drop may be easy for kids. But it is tough for me as a terminal dweller. Yet to think and plan more on the training for kids. At least, I should teach the basics of programming and show a taste of making computers to obey our orders.
Weekly chess hours for kids
Started to teach chess for our condo kids. we conduct a weekly chess hour, to teach and play with other kids. Good to see that many kids know chess already and they all enjoy the game hours.
Moana 2
Watched Moana 2 yesterday. Viyan loved it. It is very difficult to being a part 2 movie as good as part 1. Moana team did a great job on this. Stunning graphics, good story line, nice music, heart melting songs make the move as a wonder. Don’t miss to watch it in theaters.
Books
completed – பேசத் தெரிந்த நிழல்கள் – sramakrishnan. Took it from a local library. It is a book full of review of world movies. Happy to read a physical tamil book apart from 1000s of miles.
In progress – Drupal, LLM, Digital Museums
100% savings on Thanksgiving Day
As usual, got 100% savings on Thanksgiving Day sales. Bought nothing. As we are following minimalism as much as possible, we feel that we have all the things required. I was thinking, if the name of the day is like “Genocide Memorial Day”, we won’t be rushing for shops to get offers and sales. They should rename the day to show the history.
Self-hosted social media – gotosocial
I am running a social media platform on my desktop, and interacting with the world using that. It is a software called ‘Gotosocial’. It is like twitter, but we can install on our own servers. The Fediverse activitypub protocol connects with other millions of such servers around the world.
Happy to see many Emacs, FOSS, Linux, Self hosting lovers are there to interact. Getting replies for all the questions I am asking there. It gives much happiness, to be with like-minded people, around the globe.
It can be made as centralised server by integrating multiple source like source code management , build tools , deployment environment .
Complete INTEGRATION TOOL
Its Java based.
To automate the repeated task.
CI/CD ( continuous integration and continuous delivery )
Even you can do patching.
In simple , its a centralised server.
Advantages
CI/CD
Open source
Community driven
Browser based
Supports all Operating system.
Distributed build --> Master and Slave node , how ? If you are setting up Jenkins , it uses resource of the system where its installed and accordingly the Jobs will take the RAM , CPU and resources. To avoid this "Distributed build" was introduced , so that "Master and Slave node" with that the load will be distributed.
We can increase the scalability of master and slave.
CI/CD Workflow
Commit
Build
Test
Stage
Deploy
Stages will be different in other CI/CD process. Purpose will be the same.
Dedicated branch for each environment it will be a best practice to avoid any confusion here.
Installation & Configuration
sudo apt-get update
java -version
Add the official key of Jenkins and then the repo.
Job for jenkins.service failed because the control process exited with error code.
Now you can get the details by typing ,
journalctl -xeu jenkins.service
Error clearly says , ( version not supported )
Dec 01 22:03:57 meet.sathishpy1808.org jenkins[40153]: Running with Java 11 from /usr/lib/jvm/java-11-openjdk-amd64, which is older than the minimum required version (J>
Dec 01 22:03:57 meet.sathishpy1808.org jenkins[40153]: Supported Java versions are: [17, 21]
Dec 01 22:03:57 meet.sathishpy1808.org jenkins[40153]: See https://jenkins.io/redirect/java-support/ for more information.
Dec 01 22:03:57 meet.sathishpy1808.org systemd[1]: jenkins.service: Main process exited, code=exited, status=1/FAILURE
At FreeTamilEbooks.com we have published 850 ebooks. All in sharable creative commons license. There are many people asking for the text only content of all these books many times. As it is a big task, took long time for it. Thanks to Lenin, Anwar of Kaniyam Foundation, all the contributors, all the writers and readers for making this project alive and a great success.
We are publishing the books as epub format, along with PDF format. Epub is just a zip file of HTML files. So, we can copy all the content from it as unicode text. Pandoc is a wonderful open source software, which can convert an epub to plaintext file.
There are the list of actions we have to do.
Get URLs of all the 850+ epub files
Download them all.
using pandoc, convert to text file.
So far, we dont have a metadata file for all the books published. Getting the links of all epub files need some programming. As Python is a swiss knife to automate anything, started to explore the wordpress REST api with python to get all the books pages content.
ஒரு specific portல incoming requestஅ collect பண்ணி வச்சிக்கும். It just re-direct.
Backend process pool uses RAM & CPU so we can't give any number. It will assigned with a specific value , if all are used then Backend process pool will ask the request to wait until the other request gets completed.
Each Backend process pool as separate VIRTUAL memory. it won't all data , but specific information related to request.
Even Backend process pool won't execute the request.
Now Backend process pool ( BP ) will re-direct to Backend workers pool.
Eg BP - 100 & BW - 100.
Status of these gets changed like ACTIVE , IDEAL , etc
Even this Backend workers pool will have separate MEMORY. ( keep in mind )
Query example
Take an example of the below one,
select * from employee where first_name=john ;
It will go to the Backend workers pool , then " select * from employee " goes and search in SHARED BUFFER. If its there then it returns the response.
If the result is not available in SHARED BUFFER , then it goes to DISK.
Here the catch is , even the SHARED BUFFER size is limited. This can be configured.
For eg., இப்ப அந்த SHARED BUFFERல 10 mb size allocate பண்ணி இருக்கு , அடுத்த request உள்ள வருது , SHARED BUFFERல இந்த request இல்ல so it goes to DISK and then gets the output of 20 mb file size . இப்ப ஏற்கனவே இருந்த 10 mb size file will be erased and new 20 mb file will be saved in that SHARED BUFFER.
It will be very fast when the output comes from SHARED BUFFER.
WORKER Memory will take the order by , sort , etc other than select ( main query ).
Auxiliary Process
WAL WRITER - 1
Write Ahead Log
If will take all the backup of the request and the query.
It as separate buffer space.
It will also go to DISK.
The command comes to WAL from two places 1. BACKEND WORKER 2. BACKGROUND WRITER.
DIRTY PAGES
When the output gets stored in the SHARED BUFFER , at the same time a DIRTY PAGES gets created. why it gets created ? Eg., If there is any update in the query which is stored in SHRED BUFFER , then it updates but this is not saved in DISK.
If the update or any operation didn't go to main DISK , then it will create a DIRTY PAGES.
At the same time BACKGROUND WRITER , takes the notes of DIRTY PAGES and asks WAL WRITER to take a not of it.
The uncommitted task still goes to OS FILE SYSTEM from DIRTY PAGES . Note : still the commit didn't reach the MAIN DISK.
WAL WRITER - 2
If there is any crash in SHARED BUFFER , then we can get it from WAL WRITER.
Data won't be recovered but the query can be recovered for the WAL.
WAL ARCHIVER
WAL WRITER will put all details to WAL ARCHIVER.
CHECK-POINTER
Whatever comes to OS FILE SYSTEM , CHECK-POINTER will take care to make sure that it reaches the DISK properly.
AUTOVACCUM
PostgreSQL works in UPPEND method , it takes a clone of the table and then it updates.
PostgreSQL is Multi-version control.
It will clean all the STALE process.
Eg.,
Arun , 24 , 900 - STALE
Raj , 23 , 901
There is an update in Arun Mark ,
Arun , 24 , 910
இதுல Arunகு மட்டும் updation இருக்கு but இதில் update பண்ணும் போது தனியா ஒரு row create பண்ணி like duplicate and then update takes place.
AUTOVACCUM will clean all STALE rows.
STARTUP PROCESS
It will start at first and gets all data from WAL Archive Folder , then only Postgres allows the request.
Why we need this startup process ? So that all got closed properly.
This will happen before the "Post Master".
Replica
Standby unit.
Its like clone OR Master & Slave concept.
It receives all details from WAL sender.
Notes
In windows command path , if you give just "path". It will display all paths which are configured.
This file will create all DB related files , directories & Configuration files.
Also creation of system catalogs --> what is this ? --> It will store all indexes , roles , etc. --> you can see list of catalogue using below statement.
postgres=# select relname from pg_catalog.pg_class where relkind='r';
sudo -i -u postgres psql
By default a user , a role and a database will be created.
All the above 3 will be created in same name "postgres".
Then how to check the roles ?
postgres=# \du
Now see the list of databases, ( these 3 are created by postgres by default with the help of template1.
postgres=# \l
If you try to create a new DB , then it will follow the "template1", its like the blueprint.
Then why template0 ? --> you can edit template1 but not template0 ( you can't change and its not editable ).
so in short template0 --> NOT EDITABLE & template1 --> EDITABLE.
WAL
WRITE AHEAD LOG.
If the database gets crashed , with this help we can retrieve the data.
Roles
Librarian , Library member and visitor all these are roles.
Lets create a dummy role and test ,
You can see "Cannot login" , that means you can't login as it's not assigned.
creating one more ROLE,
Assigning the permissions or roles,
Here you can't see 'CANNOT LOGIN'.
If a ROLE can login then he/she is the user.
User can inherits the parents also.
How it works ?
Postmaster
All connection request goes first here. ( whatever client ask , server will respond )
Follows client server architecture.
WAL Writer
It will be write in a notebook , to keep the track of all.
Checkpoint
It periodically checks and responed.
Auto Vaccum
It periodically checks.
Stats Collector
Gathers all stats Eg., if a table is getting more request then it will collect the information and try to keep it in cache to respond very fast and also check whether index is there for the table.
Thamizh_mann publishers are publishing the public domain and nationalized tamil books for many years. Few years ago, with a collaboration with the Library at University of Toronto, Scarborough, Canada, and Thamizh_mann publishers, the kaniyam foundation team helped to release all the 1000+ tamil books as PDF and Docx formats for free online.
Thanks to UTSC, Thamizh_mann team for the great gift for the tamil Diaspora.
Now, we have 1000+ books in Unicode Docx format. Next is to convert them all as PlainText and use them. Natkeeran and Parathan helped on this.
Along with this, they helped to scrap project madurai books and tamil WikiSource books. They published all in a git repo here – https://github.com/KaniyamFoundation/open_tamil_texts along with the scripts and metadata.
I am adding those text in our open licensed tamil data collection.
We have 1.6 G of text data to work on LLM or other works.
Go ahead, use it and build more models and tools using this data.
Hope this may not enough to get any good output. But, if we can bring something out of this, even though they are not good, then we can ask people to release their recent contents, blogs, social media posts in creative commons license.
There are few bloggers, magazines are already released their content in CC license. Now, we need your help to scarp them. If you know any programming language and can help for this project, please do webscrapping for the websites mentioned here. share the data and code.
Thamizh_mann publishers are publishing the public domain and nationalized tamil books for many years. Few years ago, with a collaboration with the Library at University of Toronto, Scarborough, Canada, and Thamizh_mann publishers, the kaniyam foundation team helped to release all the 1000+ tamil books as PDF and Docx formats for free online.
Thanks to UTSC, Thamizh_mann team for the great gift for the tamil Diaspora.
Now, we have 1000+ books in Unicode Docx format. Next is to convert them all as PlainText and use them. Natkeeran and Parathan helped on this.
Along with this, they helped to scrap project madurai books and tamil WikiSource books. They published all in a git repo here – https://github.com/KaniyamFoundation/open_tamil_texts along with the scripts and metadata.
I am adding those text in our open licensed tamil data collection.
We have 1.6 G of text data to work on LLM or other works.
Go ahead, use it and build more models and tools using this data.
Hope this may not enough to get any good output. But, if we can bring something out of this, even though they are not good, then we can ask people to release their recent contents, blogs, social media posts in creative commons license.
There are few bloggers, magazines are already released their content in CC license. Now, we need your help to scarp them. If you know any programming language and can help for this project, please do webscrapping for the websites mentioned here. share the data and code.
With this concept we can load the data to the table in bulk.
Main word is LOAD.
Then comes to your mind , what is the difference between load and insert ? Insert happens one by one.Load happens in one go.
what data ? which table ? loading script ? Execute --> these are the four things YOU NEED TO KEEP IN MIND.
Flat files --> csv ( comma separated value ) , txt , dat , excel , etc.
Always use notepad to load the data.
select employee_id || ',' || first_name || ',' || salary from employees_table where rownum <= 10 ; --> this will fetch only 10 rows.
save this file in a folder as csv.
select employee_id || ',' || first_name || ',' || salary from employees_table where employee_id between 150 and 170 ; --> this will fetch rows between those values.
Save this file as txt.
Now coming to table creation
create table sample(id number , name varchar2(25) , salary number);
Now coming to creation of script
loading script or control file both are same.
load data infile 'path_of_the_file.csv'
infile 'path_of_the_file.txt'
insert into table sample
fields terminated by ','
(id,name,salary)
create the script and save as ALL FILES ( notepad ) with .ctl file.
Now coming to Execute
sqlldr hr_schema_name/password control='file_location_of_control_file_or_execution_file' direct = true
here why direct=true --> it will load very fast and it will by-pass all constraints and triggers.
if direct=false --> constraints and triggers it will check and then it execute.
In short ,
Excluding one column
If you some column should not be loaded , then use FILLER.
load data infile 'path_of_the_file.csv'
infile 'path_of_the_file.txt'
insert into table sample
fields terminated by ','
(id,name,salary filler)
load data infile 'path_of_the_file.csv'
infile 'path_of_the_file.txt'
insert into table sample
fields terminated by ','
(id,name filler,salary)
In above example , salary and name will be empty . It won't load the data.
Condition
WHEN --> loading data should obey the condition which you give.
If the condition fails , then it stores the failed data in DISCARD FILE.
If there is Oracle error , then it gets captured in BAD FILE.
WHEN condition should be used here,
load data infile 'path_of_the_file.csv'
infile 'path_of_the_file.txt'
insert into table sample when ?
fields terminated by ','
(id,name filler,salary)
How to get the process summary ?
It will be stored in log file.
you can set all the files in the command itself , like below.
sqlldr hr_schema_name/password control='file_location_of_control_file_or_execution_file' log = summary.log bad = sample.bad discard = sample.dsc direct = true
If you are giving any file name here , then it will generate automatically.
So Import take here is ,
skip
If you want to skip the rows while loading , then you can specify in the command itself.
sqlldr hr_schema_name/password control='file_location_of_control_file_or_execution_file' skip = 2 direct = true
2 rows will be skipped.
Notes
SQL loader short key word is sqlldr.
insert into table sample --> this will work only when the table is EMPTY. If you try to execute again , then it throw below error.
so you can use ,
load data infile 'path_of_the_file.csv'
infile 'path_of_the_file.txt'
append into table sample
fields terminated by ','
(id,name,salary)
Also you use truncate ( it will delete old data and insert new data again )
load data infile 'path_of_the_file.csv'
infile 'path_of_the_file.txt'
truncate into table sample
fields terminated by ','
(id,name,salary)
Task
For a particular column instead of (,) separated it's used as (#) - how to load ?